Skip to content

Commit 9e6f238

Browse files
committed
[TASK] use waitForText
1 parent 8b82388 commit 9e6f238

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

Tests/Acceptance/Backend/ContentDefenderCest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public function doNotSeeNotAllowedContentElementsInNewContentElementWizard(Backe
4747
$I->click('Content', '#element-tt_content-1 [data-colpos="1-200"]');
4848
$I->switchToIFrame();
4949
$I->waitForElement('.modal-dialog');
50-
$I->wait(0.5);
51-
$I->see('Header Only');
50+
$I->waitForText('Header Only');
5251
$I->dontSee('Table');
5352
}
5453

@@ -61,7 +60,7 @@ public function doNotSeeNotAllowedContentElementsInCTypeSelectBoxWhenCreateNewEl
6160
$I->click('Content', '#element-tt_content-1 [data-colpos="1-200"]');
6261
$I->switchToIFrame();
6362
$I->waitForElement('.modal-dialog');
64-
$I->wait(0.5);
63+
$I->waitForText('Header Only');
6564
$I->click('Header Only');
6665
$I->switchToContentFrame();
6766
$I->wait(0.2);

Tests/Acceptance/Backend/LayoutCest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function newElementInHeaderColumnHasExpectedColPosAndParentSelected(Backe
129129
// "[data-colpos="1-200"]" can be attribute of "td" or "div" tag, depends if Fluid based page module is enabled
130130
$I->switchToIFrame();
131131
$I->waitForElement('.modal-dialog');
132-
$I->wait(0.5);
132+
$I->waitForText('Header Only');
133133
$I->click('Header Only');
134134
$I->switchToContentFrame();
135135
$I->see('header [200]');
@@ -157,7 +157,7 @@ public function canCreateContentElementInContainer(BackendTester $I, PageTree $p
157157
$I->click('Content', '#element-tt_content-1 [data-colpos="1-200"]');
158158
$I->switchToIFrame();
159159
$I->waitForElement('.modal-dialog');
160-
$I->wait(0.5);
160+
$I->waitForText('Header Only');
161161
$I->click('Header Only');
162162
$I->switchToContentFrame();
163163
$I->click('Save');
@@ -194,7 +194,7 @@ public function canCreateContentElementInTranslatedContainerInFreeMode(BackendTe
194194
$I->click('Content', '#element-tt_content-' . $uid . ' [data-colpos="' . $uid . '-200"]');
195195
$I->switchToIFrame();
196196
$I->waitForElement('.modal-dialog');
197-
$I->wait(0.5);
197+
$I->waitForText('Header Only');
198198
$I->click('Header Only');
199199
$I->switchToContentFrame();
200200
$I->click('Save');
@@ -237,8 +237,7 @@ public function canTranslateChildWithTranslationModule(BackendTester $I, PageTre
237237
} else {
238238
$I->waitForElement('div[data-bs-slide="localize-summary"]');
239239
}
240-
$I->wait(1.5);
241-
$I->see('(212) headerOfChild');
240+
$I->waitForText('(212) headerOfChild');
242241
}
243242

244243
/**

0 commit comments

Comments
 (0)