diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-21 21:07:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-21 21:07:31 +0300 |
commit | d91f5211693e913da5df110b8de841fad87e3653 (patch) | |
tree | d1483aeb8fe3d2b9579b0e44f2e74979c4b8d17a /spec/features | |
parent | c859c3bfd242288065fe5e2d887f7204f09e2335 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/settings/registry_settings_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/projects/settings/registry_settings_spec.rb b/spec/features/projects/settings/registry_settings_spec.rb index 86da866a927..89da9d1b996 100644 --- a/spec/features/projects/settings/registry_settings_spec.rb +++ b/spec/features/projects/settings/registry_settings_spec.rb @@ -17,10 +17,10 @@ describe 'Project > Settings > CI/CD > Container registry tag expiration policy' expect(settings_block).to have_text 'Container Registry tag expiration policy' end - it 'Save expiration policy submit the form', :js do + it 'Save expiration policy submit the form' do within '#js-registry-policies' do within '.card-body' do - click_button(class: 'gl-toggle') + find('#expiration-policy-toggle button:not(.is-disabled)').click select('7 days until tags are automatically removed', from: 'expiration-policy-interval') select('Every day', from: 'expiration-policy-schedule') select('50 tags per image name', from: 'expiration-policy-latest') @@ -30,8 +30,8 @@ describe 'Project > Settings > CI/CD > Container registry tag expiration policy' expect(submit_button).not_to be_disabled submit_button.click end - flash_text = find('.flash-text') - expect(flash_text).to have_content('Expiration policy successfully saved.') + toast = find('.gl-toast') + expect(toast).to have_content('Expiration policy successfully saved.') end end end |