From 14a8de9b476e5284b96133c3ef130d961f05839d Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Sun, 12 May 2024 12:58:35 +0530 Subject: [PATCH] add screenshot --- tests/src/FunctionalJavascript/ContributionIatsTest.php | 3 ++- tests/src/FunctionalJavascript/WebformCivicrmTestBase.php | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/FunctionalJavascript/ContributionIatsTest.php b/tests/src/FunctionalJavascript/ContributionIatsTest.php index c0c668bc2..dc5a91cce 100644 --- a/tests/src/FunctionalJavascript/ContributionIatsTest.php +++ b/tests/src/FunctionalJavascript/ContributionIatsTest.php @@ -266,7 +266,7 @@ public function submitWebForm() { $this->fillBillingFields($billingValues); $this->getSession()->getPage()->pressButton('Submit'); // throw new \Exception(var_export($this->htmlOutputDirectory, TRUE)); - $this->createScreenshot($this->htmlOutputDirectory . '/legacy289.png'); + // $this->createScreenshot($this->htmlOutputDirectory . '/legacy289.png'); $this->htmlOutput(); $this->assertPageNoErrorMessages(); $this->assertSession()->waitForText('New submission added to CiviCRM Webform Test.'); @@ -404,6 +404,7 @@ public function testSubmitACHEFTContribution() { // Wait for the ACHEFT form to load in. $this->getSession()->wait(5000); $this->assertSession()->waitForElementVisible('css', '#account_holder'); + $this->createScreenshot($this->htmlOutputDirectory . '/acheft_iats.png'); $this->getSession()->getPage()->fillField('bank_account_number', '12345678'); $this->getSession()->getPage()->fillField('bank_identification_number', '111111111'); diff --git a/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php b/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php index 10e254851..ad49b8985 100644 --- a/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php +++ b/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php @@ -681,12 +681,11 @@ protected function fillBillingFields($params) { $this->getSession()->getPage()->fillField('Billing Last Name', $params['last_name']); $this->getSession()->getPage()->fillField('Street Address', $params['street_address']); $this->getSession()->getPage()->fillField('City', $params['city']); + $this->getSession()->getPage()->fillField('Postal Code', $params['postal_code']); $this->getSession()->getPage()->selectFieldOption('Country', $params['country']); $this->getSession()->wait(1000); $this->getSession()->getPage()->selectFieldOption('State/Province', $params['state_province']); - - $this->getSession()->getPage()->fillField('Postal Code', $params['postal_code']); } /**