Merge "QA: Make sure toast is not empty before checking text value"

This commit is contained in:
jenkins-bot 2017-08-01 20:59:12 +00:00 committed by Gerrit Code Review
commit 61f26498a1

View File

@ -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|