Skip to content

Commit

Permalink
[TASK] Stabilize FileClipboardCest (again)
Browse files Browse the repository at this point in the history
This one was still flaky. Properly waiting for
the element should finally fix this, this patch
now had a huge number of successful runs locally,
while it failed repeatedly without.

Resolves: #101487
Related: #101440
Releases: main, 12.4, 11.5
Change-Id: I2cf4b3e878caf430ead27340694a169f98e710e8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80242
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
lolli42 committed Jul 30, 2023
1 parent 9d99c5b commit d4b4fc4
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -39,11 +39,14 @@ public function _before(ApplicationTester $I, FileTree $tree): void

public function seeSwitchModes(ApplicationTester $I): void
{
$I->waitForElementVisible($this->copyModeMove);
$I->seeCheckboxIsChecked($this->copyModeMove);
$I->waitForElementVisible($this->copyModeCopy);
$I->dontSeeCheckboxIsChecked($this->copyModeCopy);
$I->click('//*/label[@for="clipboard-copymode-copy"]');
$I->waitForElement($this->copyModeMove, 5);
$I->waitForElementVisible($this->copyModeMove);
$I->dontSeeCheckboxIsChecked($this->copyModeMove);
$I->waitForElementVisible($this->copyModeCopy);
$I->seeCheckboxIsChecked($this->copyModeCopy);
}

Expand Down

0 comments on commit d4b4fc4

Please sign in to comment.