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 New Issue
Block a user