FIX Update behat toast logic so it works with quotes

This commit is contained in:
Maxime Rainville 2020-11-15 23:56:54 +13:00
parent 5f7239fc3d
commit 92af6b3dd5
1 changed files with 3 additions and 3 deletions

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)
{