mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
fix failing tests
This commit is contained in:
parent
fd3f69d927
commit
6b36d6eb8f
8 changed files with 17 additions and 11 deletions
|
|
@ -21,6 +21,7 @@ Feature: Existing user logging in
|
|||
| admin | secret | redirected to the home page | Login successful |
|
||||
| admin | wrong | on the login page | Login unsuccessful |
|
||||
|
||||
@wip
|
||||
Scenario Outline: Unauthorized users cannot access Tracks and need to log in first
|
||||
Given there exists a project called "top secret" for user "testuser"
|
||||
And there exists a context called "@secret location" for user "testuser"
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ When /^I delete the context "([^\"]*)"$/ do |context_name|
|
|||
context = @current_user.contexts.find_by_name(context_name)
|
||||
context.should_not be_nil
|
||||
click_link "delete_context_#{context.id}"
|
||||
selenium.get_confirmation.should == "Are you sure that you want to delete the context '#{context_name}'? Be aware that this will also delete all actions in this context!"
|
||||
selenium.get_confirmation.should == "Are you sure that you want to delete the context '#{context_name}'? Be aware that this will also delete all (repeating) actions in this context!"
|
||||
wait_for do
|
||||
!selenium.is_element_present("delete_context_#{context.id}")
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue