Merge pull request #9770 from creative-commoners/pulls/4/allows-test-for-toast-with-quotes

FIX Update behat toast logic so it works with quotes
This commit is contained in:
Maxime Rainville 2021-01-19 15:33:18 +13:00 committed by GitHub
commit 1a75efa4d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ class CmsUiContext implements Context
}
/**
* @Then /^I should see a "([^"]+)" (\w+) toast$/
* @Then /^I should see a "(.+)" (\w+) toast$/
*/
public function iShouldSeeAToast($notice, $type)
{
@ -93,7 +93,7 @@ class CmsUiContext implements Context
}
/**
* @Then /^I should see a "([^"]+)" (\w+) toast with these actions: (.+)$/
* @Then /^I should see a "(.+)" (\w+) toast with these actions: (.+)$/
*/
public function iShouldSeeAToastWithAction($notice, $type, $actions)
{
@ -110,7 +110,7 @@ class CmsUiContext implements Context
/**
* @param $action
* @When /^I click the "([^"]*)" toast action$/
* @When /^I click the "(.*)" toast action$/
*/
public function stepIClickTheToastAction($action)
{