From 6bde4aa388d4b8a2474c3c6aedbebd9e45066b02 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Sun, 12 May 2024 14:20:47 +0530 Subject: [PATCH] add wait --- tests/src/FunctionalJavascript/ContactRelationshipTest.php | 2 +- tests/src/FunctionalJavascript/WebformCivicrmTestBase.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/src/FunctionalJavascript/ContactRelationshipTest.php b/tests/src/FunctionalJavascript/ContactRelationshipTest.php index 597286b78..d2bf32607 100644 --- a/tests/src/FunctionalJavascript/ContactRelationshipTest.php +++ b/tests/src/FunctionalJavascript/ContactRelationshipTest.php @@ -57,7 +57,7 @@ public function testRelationshipRemoval() { $this->htmlOutput(); $this->getSession()->getPage()->selectFieldOption('civicrm_2_contact_1_relationship_relationship_type_id[]', 'create_civicrm_webform_element'); - $this->createScreenshot($this->htmlOutputDirectory . '/adminscreen.png'); + // $this->createScreenshot($this->htmlOutputDirectory . '/adminscreen.png'); $this->saveCiviCRMSettings(); $this->drupalGet($this->webform->toUrl('canonical')); diff --git a/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php b/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php index ad49b8985..112d0f1fd 100644 --- a/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php +++ b/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php @@ -718,6 +718,7 @@ protected function fillCardAndSubmit($billingValues = []) { $this->fillBillingFields($billingValues); } // Wait for the credit card form to load in. + $this->getSession()->wait(5000); $this->assertSession()->waitForField('credit_card_number'); $this->getSession()->getPage()->fillField('credit_card_number', '4222222222222220'); $this->getSession()->getPage()->fillField('cvv2', '123');