Skip to content

Commit

Permalink
FIX Update behat toast logic so it works with quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rainville committed Nov 15, 2020
1 parent 4d0dc91 commit c042f83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/behat/src/CmsUiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ public function iShouldSeeANotice($notice)
}

/**
* @Then /^I should see a "([^"]+)" (\w+) toast$/
* @Then /^I should see a "(.+)" (\w+) toast$/
*/
public function iShouldSeeAToast($notice, $type)
{
$this->getMainContext()->assertElementContains('.toast--' . $type, $notice);
}

/**
* @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)
{
Expand All @@ -110,7 +110,7 @@ public function iShouldSeeAToastWithAction($notice, $type, $actions)

/**
* @param $action
* @When /^I click the "([^"]*)" toast action$/
* @When /^I click the "(.*)" toast action$/
*/
public function stepIClickTheToastAction($action)
{
Expand Down

0 comments on commit c042f83

Please sign in to comment.