diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-15 18:10:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-15 18:10:57 +0300 |
commit | e5c7d631a84940c66e46f1824ba7ce0c7f1d0ea4 (patch) | |
tree | ac1cce129d8c8cdcee6a668e27d8034d2da172e4 /spec/features/clusters | |
parent | 0687020509cafe1e24eb0bfa0e0f5c9f6c4799d2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/clusters')
-rw-r--r-- | spec/features/clusters/create_agent_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/clusters/create_agent_spec.rb b/spec/features/clusters/create_agent_spec.rb index a05a3c4df9e..f40932c4750 100644 --- a/spec/features/clusters/create_agent_spec.rb +++ b/spec/features/clusters/create_agent_spec.rb @@ -24,21 +24,21 @@ RSpec.describe 'Cluster agent registration', :js do end it 'allows the user to select an agent to install, and displays the resulting agent token' do - click_link('GitLab Agent managed clusters') - - click_button('Connect with a GitLab Agent') + click_button('Actions') expect(page).to have_content('Install new Agent') click_button('Select an Agent') click_button('example-agent-2') - click_button('Next') + click_button('Register Agent') expect(page).to have_content('The token value will not be shown again after you close this window.') expect(page).to have_content('example-agent-token') expect(page).to have_content('docker run --pull=always --rm') - click_button('Done') + within find('.modal-footer') do + click_button('Close') + end + expect(page).to have_link('example-agent-2') - expect(page).to have_no_content('Install new Agent') end end |