From 92af6b3dd5cacc1c2e2dea2633987e14e3d0b7bd Mon Sep 17 00:00:00 2001 From: Maxime Rainville Date: Sun, 15 Nov 2020 23:56:54 +1300 Subject: [PATCH] FIX Update behat toast logic so it works with quotes --- tests/behat/src/CmsUiContext.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/behat/src/CmsUiContext.php b/tests/behat/src/CmsUiContext.php index 76083823c..6e5b3f084 100644 --- a/tests/behat/src/CmsUiContext.php +++ b/tests/behat/src/CmsUiContext.php @@ -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) {