diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-08 03:09:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-08 03:09:06 +0300 |
commit | dcdc526104295b8922b27fd806ae8c3b262cbad9 (patch) | |
tree | b641e4136dea04bb0a62833274101c07e9920053 /spec/features/clusters | |
parent | e49bd57279b72cf517853aec369e341fa3442d60 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/clusters')
-rw-r--r-- | spec/features/clusters/installing_applications_shared_examples.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/features/clusters/installing_applications_shared_examples.rb b/spec/features/clusters/installing_applications_shared_examples.rb index 263877f3849..7528bcaa8b7 100644 --- a/spec/features/clusters/installing_applications_shared_examples.rb +++ b/spec/features/clusters/installing_applications_shared_examples.rb @@ -177,23 +177,19 @@ RSpec.shared_examples "installing applications for a cluster" do |managed_apps_l end it 'shows status transition' do - def email_form_value - page.find('.js-email').value - end - page.within('.js-cluster-application-row-cert_manager') do - expect(email_form_value).to eq(cluster.user.email) + expect(page).to have_field('Issuer Email', with: cluster.user.email) expect(page).to have_css('.js-cluster-application-install-button', exact_text: 'Installing') page.find('.js-email').set("new_email@example.org") Clusters::Cluster.last.application_cert_manager.make_installing! - expect(email_form_value).to eq('new_email@example.org') + expect(page).to have_field('Issuer Email', with: 'new_email@example.org') expect(page).to have_css('.js-cluster-application-install-button', exact_text: 'Installing') Clusters::Cluster.last.application_cert_manager.make_installed! - expect(email_form_value).to eq('new_email@example.org') + expect(page).to have_field('Issuer Email', with: 'new_email@example.org') expect(page).to have_css('.js-cluster-application-uninstall-button', exact_text: 'Uninstall') end |