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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
0c529b4a
Commit
0c529b4a
authored
Jun 23, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove gitlab_sign_out_direct helper
parent
7b674d5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
spec/features/projects/jobs_spec.rb
spec/features/projects/jobs_spec.rb
+1
-1
spec/support/login_helpers.rb
spec/support/login_helpers.rb
+1
-6
No files found.
spec/features/projects/jobs_spec.rb
View file @
0c529b4a
...
...
@@ -392,7 +392,7 @@ feature 'Jobs', :feature do
job
.
cancel!
project
.
update
(
visibility_level:
Gitlab
::
VisibilityLevel
::
PUBLIC
)
gitlab_sign_out_direct
sign_out
(
:user
)
sign_in
(
create
(
:user
))
visit
namespace_project_job_path
(
project
.
namespace
,
project
,
job
)
end
...
...
spec/support/login_helpers.rb
View file @
0c529b4a
...
...
@@ -35,13 +35,8 @@ module LoginHelpers
def
gitlab_sign_out
find
(
".header-user-dropdown-toggle"
).
click
click_link
"Sign out"
# check the sign_in button
expect
(
page
).
to
have_button
(
'Sign in'
)
end
# Logout without JavaScript driver
def
gitlab_sign_out_direct
page
.
driver
.
submit
:delete
,
'/users/sign_out'
,
{}
expect
(
page
).
to
have_button
(
'Sign in'
)
end
private
...
...
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