Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/profiles/oauth_applications_spec.rb')
-rw-r--r--spec/features/profiles/oauth_applications_spec.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/features/profiles/oauth_applications_spec.rb b/spec/features/profiles/oauth_applications_spec.rb
index 9d79041dc9d..ee1daf69f62 100644
--- a/spec/features/profiles/oauth_applications_spec.rb
+++ b/spec/features/profiles/oauth_applications_spec.rb
@@ -3,11 +3,12 @@
require 'spec_helper'
RSpec.describe 'Profile > Applications' do
+ include Spec::Support::Helpers::ModalHelpers
+
let(:user) { create(:user) }
let(:application) { create(:oauth_application, owner: user) }
before do
- stub_feature_flags(bootstrap_confirmation_modals: false)
sign_in(user)
end
@@ -25,9 +26,11 @@ RSpec.describe 'Profile > Applications' do
page.within('.oauth-applications') do
expect(page).to have_content('Your applications (1)')
- accept_confirm { click_button 'Destroy' }
+ click_button 'Destroy'
end
+ accept_gl_confirm(button_text: 'Destroy')
+
expect(page).to have_content('The application was deleted successfully')
expect(page).to have_content('Your applications (0)')
expect(page).to have_content('Authorized applications (0)')
@@ -39,9 +42,11 @@ RSpec.describe 'Profile > Applications' do
page.within('.oauth-authorized-applications') do
expect(page).to have_content('Authorized applications (1)')
- accept_confirm { click_button 'Revoke' }
+ click_button 'Revoke'
end
+ accept_gl_confirm(button_text: 'Revoke application')
+
expect(page).to have_content('The application was revoked access.')
expect(page).to have_content('Your applications (0)')
expect(page).to have_content('Authorized applications (0)')