Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new_project.rb « dashboard « steps « features - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b4ade65ee534d0008a1f3e0dbe57894a244d9425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 path")
  end

  step 'I click on "Import project from GitHub"' do
    first('.how_to_import_link').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
end