Skip to content
Snippets Groups Projects
Commit 979ce508 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/+/74875


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 351d751a
Branches
Tags
No related merge requests found
......@@ -46,11 +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);
......@@ -73,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);
}
/**
......
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