Commit edad6900 authored by Jochen Roth's avatar Jochen Roth Committed by Stefan Bürk
Browse files

[BUGFIX] Wait for element in page tree to disappear

Currently the clearFilterReloadsPageTreeWithoutFilterApplied
randomly fails due to a still existing element.
This seems to be caused by performance issues in CI.

This is now solved by waiting for the element to actually
disappear.

Resolves: #97749
Releases: main, 11.5
Change-Id: Ib417fc97dcff6ddf0f3c1370ffa419a79f21eba6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74858


Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
parent dc6cb08d
......@@ -46,10 +46,9 @@ class PageTreeFilterCest
{
$I->fillField($this->filterInputField, 'Group');
$this->waitForPageTreeLoad($I);
$I->waitForElementNotVisible('//*[text()=\'inline expandsingle\']');
// [#91884] no Enter key press on purpose. The search should start by itself without additional Enter key press
// and this assertion makes sure the filter worked
$I->cantSee('inline expandsingle', $this->inPageTree);
$I->waitForElementNotVisible('//*[text()=\'inline expandsingle\']');
$I->canSee('elements group', $this->inPageTree);
$I->canSee('inline mngroup', $this->inPageTree);
......@@ -72,17 +71,17 @@ class PageTreeFilterCest
{
$I->fillField($this->filterInputField, 'Group');
$this->waitForPageTreeLoad($I);
$I->waitForElementNotVisible('//*[text()=\'inline expandsingle\']');
$I->canSee('elements group', $this->inPageTree);
$I->canSee('inline mngroup', $this->inPageTree);
$I->cantSee('inline expandsingle', $this->inPageTree);
$I->pressKey($this->filterInputField, WebDriverKeys::ESCAPE);
$this->waitForPageTreeLoad($I);
$I->waitForElementVisible('//*[text()=\'inline expandsingle\']');
$I->canSee('elements group', $this->inPageTree);
$I->canSee('inline mngroup', $this->inPageTree);
$I->canSee('inline expandsingle', $this->inPageTree);
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment