Skip to content

Commit 8b82388

Browse files
achimfritzAchim Fritz
authored andcommitted
[BUGFIX] Acceptance Tests Stability
1 parent 2ae2335 commit 8b82388

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

Build/testing-docker/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ services:
8787
XDEBUG_MODE=\"off\" \
8888
vendor/codeception/codeception/codecept run Backend -c Web/typo3conf/ext/container/Tests/codeception.yml ${TEST_FILE} ${EXTRA_TEST_OPTIONS} \
8989
|| vendor/codeception/codeception/codecept run Backend -c Web/typo3conf/ext/container/Tests/codeception.yml ${TEST_FILE} ${EXTRA_TEST_OPTIONS} \
90-
|| vendor/codeception/codeception/codecept run Backend -d -c Web/typo3conf/ext/container/Tests/codeception.yml ${TEST_FILE} ${EXTRA_TEST_OPTIONS}
90+
|| vendor/codeception/codeception/codecept run Backend -c Web/typo3conf/ext/container/Tests/codeception.yml ${TEST_FILE} ${EXTRA_TEST_OPTIONS}
9191
else
9292
DOCKER_HOST=`route -n | awk '/^0.0.0.0/ { print $$2 }'`
9393
XDEBUG_MODE=\"debug,develop\" \
9494
XDEBUG_TRIGGER=\"foo\" \
9595
XDEBUG_CONFIG=\"client_port=${PHP_XDEBUG_PORT} client_host=$${DOCKER_HOST}\" \
9696
vendor/codeception/codeception/codecept run Backend -c Web/typo3conf/ext/container/Tests/codeception.yml ${TEST_FILE} ${EXTRA_TEST_OPTIONS} \
9797
|| vendor/codeception/codeception/codecept run Backend -c Web/typo3conf/ext/container/Tests/codeception.yml ${TEST_FILE} ${EXTRA_TEST_OPTIONS} \
98-
|| vendor/codeception/codeception/codecept run Backend -d -c Web/typo3conf/ext/container/Tests/codeception.yml ${TEST_FILE} ${EXTRA_TEST_OPTIONS}
98+
|| vendor/codeception/codeception/codecept run Backend -c Web/typo3conf/ext/container/Tests/codeception.yml ${TEST_FILE} ${EXTRA_TEST_OPTIONS}
9999
fi
100100
"
101101

Tests/Acceptance/Backend/ContentDefenderCest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +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);
5051
$I->see('Header Only');
5152
$I->dontSee('Table');
5253
}
@@ -60,8 +61,10 @@ public function doNotSeeNotAllowedContentElementsInCTypeSelectBoxWhenCreateNewEl
6061
$I->click('Content', '#element-tt_content-1 [data-colpos="1-200"]');
6162
$I->switchToIFrame();
6263
$I->waitForElement('.modal-dialog');
64+
$I->wait(0.5);
6365
$I->click('Header Only');
6466
$I->switchToContentFrame();
67+
$I->wait(0.2);
6568
$I->see('textmedia', 'select');
6669
$I->dontSee('Table', 'select');
6770
}

Tests/Acceptance/Backend/LayoutCest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +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);
132133
$I->click('Header Only');
133134
$I->switchToContentFrame();
134135
$I->see('header [200]');
@@ -156,6 +157,7 @@ public function canCreateContentElementInContainer(BackendTester $I, PageTree $p
156157
$I->click('Content', '#element-tt_content-1 [data-colpos="1-200"]');
157158
$I->switchToIFrame();
158159
$I->waitForElement('.modal-dialog');
160+
$I->wait(0.5);
159161
$I->click('Header Only');
160162
$I->switchToContentFrame();
161163
$I->click('Save');
@@ -192,6 +194,7 @@ public function canCreateContentElementInTranslatedContainerInFreeMode(BackendTe
192194
$I->click('Content', '#element-tt_content-' . $uid . ' [data-colpos="' . $uid . '-200"]');
193195
$I->switchToIFrame();
194196
$I->waitForElement('.modal-dialog');
197+
$I->wait(0.5);
195198
$I->click('Header Only');
196199
$I->switchToContentFrame();
197200
$I->click('Save');
@@ -234,7 +237,7 @@ public function canTranslateChildWithTranslationModule(BackendTester $I, PageTre
234237
} else {
235238
$I->waitForElement('div[data-bs-slide="localize-summary"]');
236239
}
237-
$I->wait(1);
240+
$I->wait(1.5);
238241
$I->see('(212) headerOfChild');
239242
}
240243

0 commit comments

Comments
 (0)