Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a44988ae
Commit
a44988ae
authored
Jun 27, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed logout tests
parent
e7aa8315
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+1
-1
features/project/issues/issues.feature
features/project/issues/issues.feature
+1
-1
features/search.feature
features/search.feature
+5
-3
spec/support/login_helpers.rb
spec/support/login_helpers.rb
+2
-1
No files found.
app/views/layouts/header/_default.html.haml
View file @
a44988ae
...
...
@@ -48,7 +48,7 @@
=
link_to
"Profile"
,
current_user
%li
.divider
%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
%li
%div
...
...
features/project/issues/issues.feature
View file @
a44988ae
...
...
@@ -219,8 +219,8 @@ Feature: Project Issues
When
I click button
"Unsubscribe"
Then
I should see that I am unsubscribed
@javascript
Scenario
:
I
submit new unassigned issue as guest
Given
I logout
Given
public project
"Community"
When
I visit project
"Community"
page
And
I visit project
"Community"
issues page
...
...
features/search.feature
View file @
a44988ae
...
...
@@ -73,13 +73,15 @@ Feature: Search
Scenario
:
I
logout and should see project I am looking for
Given
project
"Shop"
is public
And
I logout
And
I logout directly
And
I visit dashboard search page
And
I search for
"Sho"
Then
I should see
"Shop"
project link
Scenario
:
I
logout and should see issues I am looking for
Given
project
"Shop"
is public
And
I logout
And
I logout directly
And
I visit dashboard search page
And
project has issues
When
I search for
"Foo"
And
I click
"Issues"
link
...
...
@@ -88,7 +90,7 @@ Feature: Search
Scenario
:
I
logout and should see project code I am looking for
Given
project
"Shop"
is public
And
I logout
And
I logout
directly
When
I visit project
"Shop"
page
And
I search for
"rspec"
on project page
Then
I should see code results for project
"Shop"
spec/support/login_helpers.rb
View file @
a44988ae
...
...
@@ -39,7 +39,8 @@ module LoginHelpers
# Requires Javascript driver.
def
logout
find
(
:css
,
".fa.fa-sign-out"
).
click
find
(
".header-user-dropdown-toggle"
).
click
click_link
"Sign out"
end
# Logout without JavaScript driver
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment