Skip to content

Commit

Permalink
remove waits
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrapurohit committed Dec 18, 2023
1 parent 42c2d2e commit 3d668bb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions tests/src/FunctionalJavascript/ActivitySubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private function addActivityFields($num = 1, $select_activity = FALSE) {

$this->getSession()->getPage()->clickLink('Activities');
$this->getSession()->getPage()->selectFieldOption('activity_number_of_activity', 1);
$this->getSession()->wait(2000);
$this->htmlOutput();

if ($select_activity) {
Expand Down
2 changes: 0 additions & 2 deletions tests/src/FunctionalJavascript/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ function testParticipantContactReference() {
$refName = 'civicrm_1_participant_1_cg' . $this->cg['id'] . '_custom_' . $this->_customFields['participant_contact_ref']['id'];
$this->getSession()->getPage()->selectFieldOption($refName, 2);
$this->getSession()->getPage()->pressButton('Next >');
$this->assertSession()->assertWaitOnAjaxRequest();
$this->assertPageNoErrorMessages();
$this->htmlOutput();

Expand All @@ -123,7 +122,6 @@ function testParticipantContactReference() {
$this->assertSession()->elementTextContains('css', '#wf-crm-billing-total', '40.00');

$this->getSession()->getPage()->pressButton('Submit');
$this->assertSession()->assertWaitOnAjaxRequest();
$this->assertPageNoErrorMessages();
$this->htmlOutput();

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 @@ -120,7 +120,6 @@ function testDeleteField() {

// Repeat the step and delete activity type element from the page.
$this->getSession()->getPage()->selectFieldOption('number_of_contacts', 2);
$this->assertSession()->assertWaitOnAjaxRequest();
$this->htmlOutput();

$this->getSession()->getPage()->clickLink('Activities');
Expand All @@ -131,7 +130,6 @@ function testDeleteField() {
$this->assertSession()->waitForField('edit-delete');

$this->getSession()->getPage()->pressButton('edit-delete');
$this->assertSession()->assertWaitOnAjaxRequest();
$this->assertSession()->waitForField('nid');
$this->htmlOutput();

Expand Down

0 comments on commit 3d668bb

Please sign in to comment.