Skip to content

Commit

Permalink
chore(tests): help Firefox with clicking buttons...
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaseberle committed Feb 6, 2024
1 parent 8c28696 commit 05fe67a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Tests/Acceptance/Frontend/PopupInteractionsCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function save(AcceptanceTester $I)
$I->amOnPage(self::PATH_root);
$I->waitForJS('return typeof cookieman === "object"', 10);
$I->waitForElementVisible(self::SELECTOR_modal);
$I->waitForElementClickable(self::SELECTOR_btnSaveNone);
$I->clickWithLeftButton(['css' => self::SELECTOR_btnSaveNone]);
$I->waitForElementNotVisible(self::SELECTOR_modal);
$I->seeCookie(self::COOKIENAME);
Expand All @@ -104,6 +105,7 @@ public function saveAll(AcceptanceTester $I)
$I->waitForElementClickable(self::LOCATOR_settings);
$I->clickWithLeftButton(self::LOCATOR_settings);
$I->scrollIntoView(self::SELECTOR_btnSaveAll);
$I->waitForElementClickable(self::SELECTOR_btnSaveAll);
$I->clickWithLeftButton(['css' => self::SELECTOR_btnSaveAll]);
$I->waitForElementNotVisible(self::SELECTOR_modal);
$I->seeCookie(self::COOKIENAME);
Expand Down Expand Up @@ -151,6 +153,7 @@ public function selectGroupAndSaveMobile(AcceptanceTester $I)
}
$I->seeCheckboxIsChecked('[name=' . self::GROUP_key2nd . ']');
$I->scrollIntoView(self::SELECTOR_btnSaveNotSaveAll);
$I->waitForElementClickable(self::SELECTOR_btnSaveNotSaveAll);
$I->clickWithLeftButton(['css' => self::SELECTOR_btnSaveNotSaveAll]);
$I->waitForElementNotVisible(self::SELECTOR_modal);
$I->seeCookie(self::COOKIENAME);
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"codeception/module-asserts": "^3.0",
"codeception/module-webdriver": "^4.0",
"dmind/cookieman-test": "@dev",
"dmind/cookieman-test-bootstrap5-modal": "@dev",
"friendsofphp/php-cs-fixer": "^3.14",
"dmind/cookieman-test-bootstrap3-banner": "@dev",
"friendsofphp/php-cs-fixer": "^3.49",
"helhum/typo3-console": "^8.0",
"phpspec/prophecy-phpunit": "^2.1",
Expand Down

0 comments on commit 05fe67a

Please sign in to comment.