28 lines
742 B
Ruby
28 lines
742 B
Ruby
|
class Spinach::Features::NewProject < Spinach::FeatureSteps
|
||
|
include SharedAuthentication
|
||
|
include SharedPaths
|
||
|
include SharedProject
|
||
|
|
||
|
step 'I click "New project" link' do
|
||
|
click_link "New project"
|
||
|
end
|
||
|
|
||
|
step 'I see "New project" page' do
|
||
|
page.should 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')
|
||
|
github_modal.should be_visible
|
||
|
github_modal.should have_content "To enable importing projects from GitHub"
|
||
|
|
||
|
all('.modal-body').each do |element|
|
||
|
element.should_not be_visible unless element == github_modal
|
||
|
end
|
||
|
end
|
||
|
end
|