Skip to content

Commit

Permalink
We must wait! (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarinG authored Sep 30, 2024
1 parent b2d9298 commit 3630b43
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/src/FunctionalJavascript/MembershipSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,13 @@ public function testSubmitMembershipQueryParams() {
$fieldset->click();
$this->getSession()->getPage()->fillField('Default value', '[current-page:query:membership]');
$this->getSession()->getPage()->pressButton('Save');
$this->assertSession()->assertWaitOnAjaxRequest();

$this->getSession()->getPage()->pressButton('Save elements');

$this->drupalLogout();
$this->drupalGet($this->webform->toUrl('canonical', ['query' => ['membership' => 2]]));
$this->htmlOutput();
// ToDo ->
$this->assertPageNoErrorMessages();

$this->assertSession()->waitForField('First Name');
Expand All @@ -236,7 +238,6 @@ public function testSubmitMembershipQueryParams() {
$this->assertSession()->pageTextContains('Basic Plus');
$this->getSession()->getPage()->pressButton('Submit');
$this->htmlOutput();
// ToDo ->
$this->assertPageNoErrorMessages();

$this->assertSession()->pageTextContains('New submission added to CiviCRM Webform Test.');
Expand Down

0 comments on commit 3630b43

Please sign in to comment.