Skip to content

Commit

Permalink
Remove unwanted waits
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrapurohit committed Dec 17, 2023
1 parent be42cef commit ffc2f5b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion tests/src/FunctionalJavascript/ContributionDummyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,6 @@ public function testAssignContributionSecondContactSelectByUserPaymentProcessor(
$this->assertSession()->elementTextContains('css', '#wf-crm-billing-total', '10.00');

$this->htmlOutput();
$this->assertSession()->assertWaitOnAjaxRequest();
$this->fillCardAndSubmit();

$api_result_contribution = $this->utils->wf_civicrm_api('contribution', 'get', [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ public function testDynamicCustomFields() {
$this->drupalGet($fieldURL);
$this->getSession()->getPage()->checkField('Active?');
$this->getSession()->getPage()->pressButton('_qf_Field_done-bottom');
$this->assertSession()->assertWaitOnAjaxRequest();

$this->drupalGet($this->webform->toUrl('canonical'));
$this->htmlOutput();
Expand Down
1 change: 0 additions & 1 deletion tests/src/FunctionalJavascript/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ function testParticipantContactReference() {
$this->getSession()->getPage()->selectFieldOption('Payment Processor', 'Pay Later');

$this->saveCiviCRMSettings();
$this->assertSession()->assertWaitOnAjaxRequest();

$this->drupalGet($this->webform->toUrl('canonical'));
$this->htmlOutput();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ function testRenderingOfExistingContactElement() {

foreach ([2, 3, 4] as $c) {
$this->getSession()->getPage()->clickLink("Contact {$c}");
$this->assertSession()->assertWaitOnAjaxRequest();
//Make second contact as household contact.
if ($c == 2) {
$this->getSession()->getPage()->selectFieldOption("{$c}_contact_type", 'Household');
Expand Down
2 changes: 0 additions & 2 deletions tests/src/FunctionalJavascript/SaveSettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ function testPaging() {
$this->assertElementsOnBuildForm($elements);
$this->drupalGet($this->webform->toUrl('edit-form'));
$this->getSession()->getPage()->clickLink('Source');
$this->assertSession()->assertWaitOnAjaxRequest();

$this->assertSession()->pageTextContains('contact_pagebreak');
}
Expand Down Expand Up @@ -111,7 +110,6 @@ function testDeleteField() {

// Cancel this action.
$this->getSession()->getPage()->pressButton('edit-cancel');
$this->assertSession()->assertWaitOnAjaxRequest();
$this->assertSession()->waitForField('nid');
$this->htmlOutput();

Expand Down
2 changes: 0 additions & 2 deletions tests/src/FunctionalJavascript/WebformCivicrmTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,6 @@ protected function fillBillingFields($params) {
protected function fillCardAndSubmit($billingValues = []) {
if (!empty($billingValues)) {
$this->getSession()->getPage()->checkField("civicrm_1_contribution_1_contribution_billing_address_same_as");
$this->assertSession()->assertWaitOnAjaxRequest();
$this->getSession()->wait(1000);

// Verify populated values for billing fields.
Expand Down Expand Up @@ -776,7 +775,6 @@ protected function addEmailHandler($params) {
}

$this->getSession()->getPage()->selectFieldOption('edit-settings-body', '_other_');
$this->assertSession()->assertWaitOnAjaxRequest();
$this->fillCKEditor('settings[body_custom_html][value]', $params['body']);
$this->getSession()->getPage()->pressButton('Save');
}
Expand Down

0 comments on commit ffc2f5b

Please sign in to comment.