aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2017-09-30 14:48:13 +0200
committerAlban Peignier2017-09-30 14:48:13 +0200
commit5bf102d98fca662257bf89ff1c8f3649c5fd9476 (patch)
treeb26da95396efad7f91a6392467623c8595d8742b
parentfda2b7b07349fd20cc70d68bf1544a7f51841f70 (diff)
downloadchouette-core-5bf102d98fca662257bf89ff1c8f3649c5fd9476.tar.bz2
Update 'New API Key' feature spec to use /dashboard page. Refs #4655
-rw-r--r--spec/features/api_keys/edit_api_key_feature_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/features/api_keys/edit_api_key_feature_spec.rb b/spec/features/api_keys/edit_api_key_feature_spec.rb
index 411c11aaf..b5a0fefc7 100644
--- a/spec/features/api_keys/edit_api_key_feature_spec.rb
+++ b/spec/features/api_keys/edit_api_key_feature_spec.rb
@@ -12,8 +12,7 @@ RSpec.describe 'New API Key', type: :feature do
let( :unique_name ){ SecureRandom.uuid }
it 'complete workflow' do
- # /workbenches
- visit workbenches_path
+ visit dashboard_path
# api_key's new name does not exist yet
expect( page ).not_to have_content(unique_name)
# the api_key is visible
@@ -28,7 +27,7 @@ RSpec.describe 'New API Key', type: :feature do
expect(api_key.reload.name).to eq(unique_name)
# check redirect and changed display
- expect(page.current_path).to eq(workbenches_path)
+ expect(page.current_path).to eq(dashboard_path)
# changed api_key's name exists now
expect( page ).to have_content(unique_name)
end
@@ -36,4 +35,3 @@ RSpec.describe 'New API Key', type: :feature do
end
end
-