Skip to content

Commit

Permalink
add wait
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrapurohit committed May 12, 2024
1 parent 14a8de9 commit 6bde4aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/FunctionalJavascript/ContactRelationshipTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
1 change: 1 addition & 0 deletions tests/src/FunctionalJavascript/WebformCivicrmTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6bde4aa

Please sign in to comment.