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
44a5c6b2
Commit
44a5c6b2
authored
Apr 04, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a transient spec failure in "Admin Health Check" feature spec
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
81ac42bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/features/admin/admin_health_check_spec.rb
spec/features/admin/admin_health_check_spec.rb
+3
-3
No files found.
spec/features/admin/admin_health_check_spec.rb
View file @
44a5c6b2
...
@@ -2,7 +2,6 @@ require 'spec_helper'
...
@@ -2,7 +2,6 @@ require 'spec_helper'
feature
"Admin Health Check"
,
feature:
true
do
feature
"Admin Health Check"
,
feature:
true
do
include
StubENV
include
StubENV
include
WaitForAjax
before
do
before
do
stub_env
(
'IN_MEMORY_APPLICATION_SETTINGS'
,
'false'
)
stub_env
(
'IN_MEMORY_APPLICATION_SETTINGS'
,
'false'
)
...
@@ -24,11 +23,12 @@ feature "Admin Health Check", feature: true do
...
@@ -24,11 +23,12 @@ feature "Admin Health Check", feature: true do
expect
(
page
).
to
have_selector
(
'#health-check-token'
,
text:
token
)
expect
(
page
).
to
have_selector
(
'#health-check-token'
,
text:
token
)
end
end
describe
'reload access token'
,
js:
true
do
describe
'reload access token'
do
it
'changes the access token'
do
it
'changes the access token'
do
orig_token
=
current_application_settings
.
health_check_access_token
orig_token
=
current_application_settings
.
health_check_access_token
click_button
'Reset health check access token'
click_button
'Reset health check access token'
wait_for_ajax
expect
(
page
).
to
have_content
(
'New health check access token has been generated!'
)
expect
(
find
(
'#health-check-token'
).
text
).
not_to
eq
orig_token
expect
(
find
(
'#health-check-token'
).
text
).
not_to
eq
orig_token
end
end
end
end
...
...
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