From 5bf102d98fca662257bf89ff1c8f3649c5fd9476 Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Sat, 30 Sep 2017 14:48:13 +0200 Subject: Update 'New API Key' feature spec to use /dashboard page. Refs #4655 --- spec/features/api_keys/edit_api_key_feature_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'spec/features/api_keys') 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 - -- cgit v1.2.3