Skip to content

Commit

Permalink
[TASK] Stabilize more Frontend/ ac tests
Browse files Browse the repository at this point in the history
Similar to #101491, the other Application/Frontend
acceptance tests get same treatment to wait for the
"View webpage" icon being visible, before trying to
click it.

Resolves: #101492
Related: #101491
Releases: main, 12.4, 11.5
Change-Id: Ie8dd5338a6773baf8850fec0713dcd917699fbfc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80254
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
lolli42 committed Jul 30, 2023
1 parent 6e99b18 commit 724e5f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Expand Up @@ -35,6 +35,7 @@ public function _before(ApplicationTester $I, PageTree $pageTree): void
$I->waitForElement('#typo3-pagetree-tree .nodes .node', 5);
$pageTree->openPath(['styleguide frontend demo']);
$I->switchToContentFrame();
$I->waitForElementVisible('.t3js-module-docheader-bar a[title="View webpage"]');
$I->click('.t3js-module-docheader-bar a[title="View webpage"]');
$I->executeInSelenium(static function (RemoteWebDriver $webdriver) {
$handles = $webdriver->getWindowHandles();
Expand Down
Expand Up @@ -38,6 +38,7 @@ public function _before(ApplicationTester $I, PageTree $pageTree): void
$I->waitForElement('#typo3-pagetree-tree .nodes .node', 5);
$pageTree->openPath(['styleguide frontend demo']);
$I->switchToContentFrame();
$I->waitForElementVisible('.t3js-module-docheader-bar a[title="View webpage"]');
$I->click('.t3js-module-docheader-bar a[title="View webpage"]');
$I->executeInSelenium(static function (RemoteWebDriver $webdriver) {
$handles = $webdriver->getWindowHandles();
Expand Down
Expand Up @@ -36,6 +36,7 @@ public function _before(ApplicationTester $I, PageTree $pageTree): void
$I->waitForElement('#typo3-pagetree-tree .nodes .node', 5);
$pageTree->openPath(['styleguide frontend demo']);
$I->switchToContentFrame();
$I->waitForElementVisible('.t3js-module-docheader-bar a[title="View webpage"]');
$I->click('.t3js-module-docheader-bar a[title="View webpage"]');
$I->executeInSelenium(static function (RemoteWebDriver $webdriver) {
$handles = $webdriver->getWindowHandles();
Expand Down
Expand Up @@ -40,6 +40,7 @@ public function _before(ApplicationTester $I, PageTree $pageTree)
$I->waitForElement('#typo3-pagetree-tree .nodes .node', 5);
$pageTree->openPath(['styleguide frontend demo']);
$I->switchToContentFrame();
$I->waitForElementVisible('.t3js-module-docheader-bar a[title="View webpage"]');
$I->click('.t3js-module-docheader-bar a[title="View webpage"]');
$I->executeInSelenium(function (RemoteWebDriver $webdriver) {
$handles = $webdriver->getWindowHandles();
Expand Down

0 comments on commit 724e5f8

Please sign in to comment.