Commit 4c35b6ef authored by Erick Banks's avatar Erick Banks

Add check for new email addition in audit test

We're not verifying that the new email gets added for audit
tests. Thus the email can fail to be added, then the test
continues and only fails on verifying in the audit log, but
we can check that the email was indeed added before proceeding.
parent 7119d19c
...@@ -60,9 +60,12 @@ module QA ...@@ -60,9 +60,12 @@ module QA
new_email_address = 'new_email@example.com' new_email_address = 'new_email@example.com'
Page::Main::Menu.perform(&:click_settings_link) Page::Main::Menu.perform(&:click_settings_link)
Page::Profile::Menu.perform(&:click_emails) Page::Profile::Menu.perform(&:click_emails)
Page::Profile::Emails.perform do |emails| Support::Retrier.retry_until(sleep_interval: 3) do
emails.add_email_address(new_email_address) Page::Profile::Emails.perform do |emails|
emails.delete_email_address(new_email_address) 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
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