mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
1a75efa4d6
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user