diff options
Diffstat (limited to 'spec/features/projects/feature_flag_user_lists/user_deletes_feature_flag_user_list_spec.rb')
-rw-r--r-- | spec/features/projects/feature_flag_user_lists/user_deletes_feature_flag_user_list_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/projects/feature_flag_user_lists/user_deletes_feature_flag_user_list_spec.rb b/spec/features/projects/feature_flag_user_lists/user_deletes_feature_flag_user_list_spec.rb index 2a81c706525..37d6f299883 100644 --- a/spec/features/projects/feature_flag_user_lists/user_deletes_feature_flag_user_list_spec.rb +++ b/spec/features/projects/feature_flag_user_lists/user_deletes_feature_flag_user_list_spec.rb @@ -17,12 +17,13 @@ RSpec.describe 'User deletes feature flag user list', :js do end it 'deletes the list' do - visit(project_feature_flags_path(project, scope: 'userLists')) + visit(project_feature_flags_user_lists_path(project, scope: 'userLists')) delete_user_list_button.click delete_user_list_modal_confirmation_button.click - expect(page).to have_text('Lists 0') + expect(page).to have_text('Lists') + expect(page).not_to have_selector('[data-testid="ffUserListName"]') end end @@ -34,7 +35,7 @@ RSpec.describe 'User deletes feature flag user list', :js do end it 'does not delete the list' do - visit(project_feature_flags_path(project, scope: 'userLists')) + visit(project_feature_flags_user_lists_path(project, scope: 'userLists')) delete_user_list_button.click delete_user_list_modal_confirmation_button.click |