Skip to content

Commit

Permalink
temp fix to handle differences in versions
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Oct 8, 2023
1 parent b62d51b commit a10e1ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/src/FunctionalJavascript/ContributionIatsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,12 @@ public function testSubmitACHEFTContribution() {
// Wait for the ACHEFT form to load in.
$this->assertSession()->waitForField('account_holder');
$this->getSession()->getPage()->fillField('Account Holder', 'CiviCRM user');
$this->getSession()->getPage()->fillField('Bank Account Number', '12345678');
// remove this if block and use the first version after next IATS release
if (version_compare(\Drupal::VERSION, '10', '>=')) {
$this->getSession()->getPage()->fillField('Account No.', '12345678');
} else {
$this->getSession()->getPage()->fillField('Bank Account Number', '12345678');
}
$this->getSession()->getPage()->fillField('Bank Identification Number', '111111111');
$this->getSession()->getPage()->fillField('Bank Name', 'Bank of CiviCRM');
$this->getSession()->getPage()->selectFieldOption('bank_account_type', 'Savings');
Expand Down

0 comments on commit a10e1ea

Please sign in to comment.