Skip to content

Commit

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

/**
Expand Down

0 comments on commit 14a8de9

Please sign in to comment.