Skip to content
Snippets Groups Projects
Commit a44988ae authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed logout tests

parent e7aa8315
No related branches found
No related tags found
No related merge requests found
Loading
@@ -48,7 +48,7 @@
Loading
@@ -48,7 +48,7 @@
= link_to "Profile", current_user = link_to "Profile", current_user
%li.divider %li.divider
%li %li
= link_to "Sign out", destroy_user_session_path, method: :delete, title: 'Sign out' = link_to "Sign out", destroy_user_session_path, method: :delete, class: "sign-out-link", title: 'Sign out'
- else - else
%li %li
%div %div
Loading
Loading
Loading
@@ -219,8 +219,8 @@ Feature: Project Issues
Loading
@@ -219,8 +219,8 @@ Feature: Project Issues
When I click button "Unsubscribe" When I click button "Unsubscribe"
Then I should see that I am unsubscribed Then I should see that I am unsubscribed
   
@javascript
Scenario: I submit new unassigned issue as guest Scenario: I submit new unassigned issue as guest
Given I logout
Given public project "Community" Given public project "Community"
When I visit project "Community" page When I visit project "Community" page
And I visit project "Community" issues page And I visit project "Community" issues page
Loading
Loading
Loading
@@ -73,13 +73,15 @@ Feature: Search
Loading
@@ -73,13 +73,15 @@ Feature: Search
   
Scenario: I logout and should see project I am looking for Scenario: I logout and should see project I am looking for
Given project "Shop" is public Given project "Shop" is public
And I logout And I logout directly
And I visit dashboard search page
And I search for "Sho" And I search for "Sho"
Then I should see "Shop" project link Then I should see "Shop" project link
   
Scenario: I logout and should see issues I am looking for Scenario: I logout and should see issues I am looking for
Given project "Shop" is public Given project "Shop" is public
And I logout And I logout directly
And I visit dashboard search page
And project has issues And project has issues
When I search for "Foo" When I search for "Foo"
And I click "Issues" link And I click "Issues" link
Loading
@@ -88,7 +90,7 @@ Feature: Search
Loading
@@ -88,7 +90,7 @@ Feature: Search
   
Scenario: I logout and should see project code I am looking for Scenario: I logout and should see project code I am looking for
Given project "Shop" is public Given project "Shop" is public
And I logout And I logout directly
When I visit project "Shop" page When I visit project "Shop" page
And I search for "rspec" on project page And I search for "rspec" on project page
Then I should see code results for project "Shop" Then I should see code results for project "Shop"
Loading
@@ -39,7 +39,8 @@ module LoginHelpers
Loading
@@ -39,7 +39,8 @@ module LoginHelpers
   
# Requires Javascript driver. # Requires Javascript driver.
def logout def logout
find(:css, ".fa.fa-sign-out").click find(".header-user-dropdown-toggle").click
click_link "Sign out"
end end
   
# Logout without JavaScript driver # Logout without JavaScript driver
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment