mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-21 10:36:04 +10:00
New Project page improvements for mobile ## What does this MR do? Redesigns the "Project path" fields on the New Project page. ## Are there points in the code the reviewer needs to double check? Not that I know of, nothing I changed should break any other pages. ## Why was this MR needed? The new project page was unusable on mobile because the project name text field didn't have enough space. ## What are the relevant issue numbers? Fixes #18599. ## Screenshots (if relevant) Before:  After:   ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] Tests - [x] Added for this feature/bug - [ ] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if you do - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) cc: @jschatz1 @dzaporozhets See merge request !4687
60 lines
1.7 KiB
Ruby
60 lines
1.7 KiB
Ruby
class Spinach::Features::NewProject < Spinach::FeatureSteps
|
|
include SharedAuthentication
|
|
include SharedPaths
|
|
include SharedProject
|
|
|
|
step 'I click "New Project" link' do
|
|
page.within('.content') do
|
|
click_link "New Project"
|
|
end
|
|
end
|
|
|
|
step 'I see "New Project" page' do
|
|
expect(page).to have_content('Project owner')
|
|
expect(page).to have_content('Project name')
|
|
end
|
|
|
|
step 'I see all possible import optios' do
|
|
expect(page).to have_link('GitHub')
|
|
expect(page).to have_link('Bitbucket')
|
|
expect(page).to have_link('GitLab.com')
|
|
expect(page).to have_link('Gitorious.org')
|
|
expect(page).to have_link('Google Code')
|
|
expect(page).to have_link('Repo by URL')
|
|
expect(page).to have_link('GitLab export')
|
|
end
|
|
|
|
step 'I click on "Import project from GitHub"' do
|
|
first('.import_github').click
|
|
end
|
|
|
|
step 'I see instructions on how to import from GitHub' do
|
|
github_modal = first('.modal-body')
|
|
expect(github_modal).to be_visible
|
|
expect(github_modal).to have_content "To enable importing projects from GitHub"
|
|
|
|
page.all('.modal-body').each do |element|
|
|
expect(element).not_to be_visible unless element == github_modal
|
|
end
|
|
end
|
|
|
|
step 'I click on "Repo by URL"' do
|
|
first('.import_git').click
|
|
end
|
|
|
|
step 'I see instructions on how to import from Git URL' do
|
|
git_import_instructions = first('.js-toggle-content')
|
|
expect(git_import_instructions).to be_visible
|
|
expect(git_import_instructions).to have_content "Git repository URL"
|
|
end
|
|
|
|
step 'I click on "Google Code"' do
|
|
first('.import_google_code').click
|
|
end
|
|
|
|
step 'I redirected to Google Code import page' do
|
|
expect(current_path).to eq new_import_google_code_path
|
|
end
|
|
|
|
end
|