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:
parent
6bc349f1d5
commit
f2639e7a73
|
@ -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
|
# 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)
|
# We must wait until the lazy loading has happened before checking for the toast (T170890)
|
||||||
page.wait_until_rl_module_ready('mediawiki.notification')
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue