Skip to content

Commit

Permalink
fix: adjust waiting timings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maikschneider committed Jun 28, 2024
1 parent c564407 commit 77bdd7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Tests/Acceptance/Backend/ElementCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ private function navigateToElementTab(
$I->waitForElementVisible(PageTree::$pageTreeFrameSelector);
$pageTree->clickElement('Main');
$I->switchToContentFrame();
$I->waitForText('Element1');
$I->click('Element1');
$I->waitForText('Formcycle');
$I->click('Formcycle');
}

Expand All @@ -67,8 +69,9 @@ public function seeFormSelection(
$extensionConfiguration->write('formcycleUrl', 'https://pro.form.cloud/formcycle');
$extensionConfiguration->write('formcycleClientId', '2252');
$this->navigateToElementTab($I, $pageTree);
$I->wait(1);
$I->dontSee('Configuration error');
$I->waitForElementVisible('#xm-available-forms-wrapper');
$I->waitForElementVisible('#xm-available-forms-wrapper', 120);
}

public function createElementAndSave(
Expand Down
2 changes: 1 addition & 1 deletion Tests/Acceptance/Backend/ElementV11Cest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function seeFormSelection(
$extensionConfiguration->write('formcycleUrl', 'https://pro.form.cloud/formcycle');
$extensionConfiguration->write('formcycleClientId', '2252');
$this->navigateToElementTab($I, $pageTree);
$I->wait(5);
$I->wait(1);
$I->dontSee('Configuration error');
$I->seeElement('#xm-formcycle-forms');
$I->waitForElementVisible('#xm-available-forms-wrapper', 120);
Expand Down

0 comments on commit 77bdd7a

Please sign in to comment.