Commit 2b3ba352 authored by Dan Davison's avatar Dan Davison

Merge branch 'egb-add-email-check-207741' into 'master'

Add check for new email addition in audit test

Closes #207741

See merge request gitlab-org/gitlab!30679
parents 2fb9985a 4c35b6ef
......@@ -60,9 +60,12 @@ module QA
new_email_address = 'new_email@example.com'
Page::Main::Menu.perform(&:click_settings_link)
Page::Profile::Menu.perform(&:click_emails)
Page::Profile::Emails.perform do |emails|
emails.add_email_address(new_email_address)
emails.delete_email_address(new_email_address)
Support::Retrier.retry_until(sleep_interval: 3) do
Page::Profile::Emails.perform do |emails|
emails.add_email_address(new_email_address)
expect(emails).to have_text(new_email_address)
emails.delete_email_address(new_email_address)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment