From a10e1ea9cd10eaa18c8d4a3cee0172cce0581a34 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 7 Oct 2023 22:10:04 -0400 Subject: [PATCH] temp fix to handle differences in versions --- tests/src/FunctionalJavascript/ContributionIatsTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/src/FunctionalJavascript/ContributionIatsTest.php b/tests/src/FunctionalJavascript/ContributionIatsTest.php index 7807ac423..ac773291c 100644 --- a/tests/src/FunctionalJavascript/ContributionIatsTest.php +++ b/tests/src/FunctionalJavascript/ContributionIatsTest.php @@ -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');