MOBILE-3320 behat: Fix negated step

main
Noel De Martin 2021-06-07 10:00:06 +02:00
parent 639a045c07
commit 6a01f84ed5
1 changed files with 1 additions and 1 deletions

View File

@ -683,7 +683,7 @@ class behat_app extends behat_base {
* @Given /^the app should( not)? have opened a browser tab$/ * @Given /^the app should( not)? have opened a browser tab$/
* @param bool $not * @param bool $not
*/ */
public function the_app_should_have_opened_a_browser_tab(bool $not) { public function the_app_should_have_opened_a_browser_tab(bool $not = false) {
$this->spin(function() use ($not) { $this->spin(function() use ($not) {
$openedbrowsertab = count($this->getSession()->getWindowNames()) === 2; $openedbrowsertab = count($this->getSession()->getWindowNames()) === 2;