summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-04-04 20:28:43 +0200
committerRémy Coutable <remy@rymai.me>2017-04-04 20:31:38 +0200
commit44a5c6b2a3ef912d823de59487ce9f533f08d7bf (patch)
treed399ef19cb02f88b3120c9f7d51a9307ee73087d
parent81ac42bd5b1506b82628d7b07a886de4f2f38bfa (diff)
downloadgitlab-ce-30461-fix-transient-failure.tar.gz
Fix a transient spec failure in "Admin Health Check" feature spec30461-fix-transient-failure
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--spec/features/admin/admin_health_check_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/admin/admin_health_check_spec.rb b/spec/features/admin/admin_health_check_spec.rb
index f7e49a56deb..523afa2318f 100644
--- a/spec/features/admin/admin_health_check_spec.rb
+++ b/spec/features/admin/admin_health_check_spec.rb
@@ -2,7 +2,6 @@ require 'spec_helper'
feature "Admin Health Check", feature: true do
include StubENV
- include WaitForAjax
before do
stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false')
@@ -24,11 +23,12 @@ feature "Admin Health Check", feature: true do
expect(page).to have_selector('#health-check-token', text: token)
end
- describe 'reload access token', js: true do
+ describe 'reload access token' do
it 'changes the access token' do
orig_token = current_application_settings.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
end
end