Skip to content

Commit

Permalink
Update MembershipSubmissionTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
KarinG authored Sep 30, 2024
1 parent 9602a23 commit e344734
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/src/FunctionalJavascript/MembershipSubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,20 +219,17 @@ public function testSubmitMembershipQueryParams() {
$this->getSession()->getPage()->clickLink('Advanced');
$this->assertSession()->assertWaitOnAjaxRequest();
$this->htmlOutput();

$fieldset = $this->assertSession()->elementExists('css', '[data-drupal-selector="edit-default"]');
$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 @@ -244,7 +241,7 @@ public function testSubmitMembershipQueryParams() {
$this->assertPageNoErrorMessages();

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

$api_result = $this->utils->wf_civicrm_api('membership', 'get', [
'sequential' => 1,
]);
Expand Down

0 comments on commit e344734

Please sign in to comment.