mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Update behat toast logic so it works with quotes
This commit is contained in:
parent
5f7239fc3d
commit
92af6b3dd5
@ -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)
|
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)
|
public function iShouldSeeAToastWithAction($notice, $type, $actions)
|
||||||
{
|
{
|
||||||
@ -110,7 +110,7 @@ class CmsUiContext implements Context
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $action
|
* @param $action
|
||||||
* @When /^I click the "([^"]*)" toast action$/
|
* @When /^I click the "(.*)" toast action$/
|
||||||
*/
|
*/
|
||||||
public function stepIClickTheToastAction($action)
|
public function stepIClickTheToastAction($action)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user