diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /spec/features/merge_request/user_manages_subscription_spec.rb | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/features/merge_request/user_manages_subscription_spec.rb')
-rw-r--r-- | spec/features/merge_request/user_manages_subscription_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/merge_request/user_manages_subscription_spec.rb b/spec/features/merge_request/user_manages_subscription_spec.rb index c64c761b8d1..9fb85957979 100644 --- a/spec/features/merge_request/user_manages_subscription_spec.rb +++ b/spec/features/merge_request/user_manages_subscription_spec.rb @@ -45,21 +45,21 @@ RSpec.describe 'User manages subscription', :js do click_button 'Toggle dropdown' - expect(page).to have_content('Turn on notifications') - click_button 'Turn on notifications' + expect(page).to have_selector('.gl-toggle:not(.is-checked)') + find('[data-testid="notifications-toggle"] .gl-toggle').click wait_for_requests click_button 'Toggle dropdown' - expect(page).to have_content('Turn off notifications') - click_button 'Turn off notifications' + expect(page).to have_selector('.gl-toggle.is-checked') + find('[data-testid="notifications-toggle"] .gl-toggle').click wait_for_requests click_button 'Toggle dropdown' - expect(page).to have_content('Turn on notifications') + expect(page).to have_selector('.gl-toggle:not(.is-checked)') end end end |