mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-07 00:11:47 +01:00
fix and test toggling of new-project-form
This commit is contained in:
parent
9028a00767
commit
36e63a4ad9
3 changed files with 20 additions and 4 deletions
|
|
@ -50,4 +50,12 @@ end
|
|||
|
||||
Then /^the project list badge for "([^"]*)" projects should show (\d+)$/ do |state_name, count|
|
||||
selenium.get_text("xpath=//span[@id='#{state_name}-projects-count']").should == count
|
||||
end
|
||||
end
|
||||
|
||||
Then /^the new project form should be visible$/ do
|
||||
selenium.is_visible("project_new").should == true
|
||||
end
|
||||
|
||||
Then /^the new project form should not be visible$/ do
|
||||
selenium.is_visible("project_new").should == false
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue