mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-23 22:03:39 +00:00
Merge "QA: Make sure toast is not empty before checking text value"
This commit is contained in:
commit
61f26498a1
|
@ -34,7 +34,12 @@ end
|
|||
|
||||
Then(/^I should see a toast with message "(.+)"$/) do |msg|
|
||||
step "I should see a toast notification"
|
||||
expect(on(ArticlePage).toast_element.when_present.text).to match msg
|
||||
on(ArticlePage) do |page|
|
||||
page.wait_until do
|
||||
page.toast_element.when_present.text.include? msg
|
||||
end
|
||||
expect(page.toast_element.when_present.text).to match msg
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should see a drawer with message "(.+)"$/ do |text|
|
||||
|
|
Loading…
Reference in a new issue