QA: Don't check when_visible twice

Instead check the element is in the DOM before testing its
visibility.

This might help T208808 but it's a stab in the dark.

Change-Id: If7ccf5f2f03073c247de7fa497b3a6e31b570918
This commit is contained in:
jdlrobson 2018-11-13 16:49:24 -08:00
parent 6bc349f1d5
commit f2639e7a73
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ Then(/^I should see a toast notification$/) do
# Minerva loads mediawiki.notify at startup which defers the loading of this module
# We must wait until the lazy loading has happened before checking for the toast (T170890)
page.wait_until_rl_module_ready('mediawiki.notification')
expect(page.notification_area_element.when_visible).to be_visible
expect(page.notification_area_element.when_present).to be_visible
end
end