From 67a07f99710c4f6c1ad54888c7e2f27c89523164 Mon Sep 17 00:00:00 2001 From: KarinG Date: Tue, 30 Jan 2024 18:11:04 -0700 Subject: [PATCH 1/5] Update ContributionIatsTest.php --- tests/src/FunctionalJavascript/ContributionIatsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/FunctionalJavascript/ContributionIatsTest.php b/tests/src/FunctionalJavascript/ContributionIatsTest.php index f4b549f3b..a5d82cc3b 100644 --- a/tests/src/FunctionalJavascript/ContributionIatsTest.php +++ b/tests/src/FunctionalJavascript/ContributionIatsTest.php @@ -136,7 +136,7 @@ protected function setUp(): void { $this->filliATSCryptogram(); $billingValues = [ 'first_name' => 'Frederick', - 'last_name' => 'Pabst', + 'last_name' => "O'Pabst-Kelly", 'street_address' => '123 Milwaukee Ave', 'city' => 'Milwaukee', 'country' => '1228', From f9c9fab08dd21176f7e4bb81e71eaaf8ea331693 Mon Sep 17 00:00:00 2001 From: KarinG Date: Tue, 30 Jan 2024 19:49:17 -0700 Subject: [PATCH 2/5] Update ContributionIatsTest.php --- tests/src/FunctionalJavascript/ContributionIatsTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/FunctionalJavascript/ContributionIatsTest.php b/tests/src/FunctionalJavascript/ContributionIatsTest.php index a5d82cc3b..66f018cdf 100644 --- a/tests/src/FunctionalJavascript/ContributionIatsTest.php +++ b/tests/src/FunctionalJavascript/ContributionIatsTest.php @@ -136,7 +136,7 @@ protected function setUp(): void { $this->filliATSCryptogram(); $billingValues = [ 'first_name' => 'Frederick', - 'last_name' => "O'Pabst-Kelly", + 'last_name' => 'Pabst', 'street_address' => '123 Milwaukee Ave', 'city' => 'Milwaukee', 'country' => '1228', @@ -261,7 +261,7 @@ public function testSubmitContribution() { $this->getSession()->getPage()->selectFieldOption('credit_card_exp_date[Y]', $this_year + 1); $billingValues = [ 'first_name' => 'Frederick', - 'last_name' => 'Pabst', + 'last_name' => "O'Pabst-Kelly", 'street_address' => '123 Milwaukee Ave', 'city' => 'Milwaukee', 'country' => '1228', @@ -272,7 +272,7 @@ public function testSubmitContribution() { $this->getSession()->getPage()->pressButton('Submit'); // throw new \Exception(var_export($this->htmlOutputDirectory, TRUE)); - $this->createScreenshot($this->htmlOutputDirectory . '/legacy289.png'); + $this->createScreenshot($this->htmlOutputDirectory . '/legacy_billingfields.png'); $this->htmlOutput(); $this->assertPageNoErrorMessages(); $this->assertSession()->pageTextContains('New submission added to CiviCRM Webform Test.'); From 80d1768323c933596db2354ebcf53a1c6c0927a9 Mon Sep 17 00:00:00 2001 From: KarinG Date: Wed, 31 Jan 2024 17:23:19 -0700 Subject: [PATCH 3/5] Update ContributionIatsTest.php --- tests/src/FunctionalJavascript/ContributionIatsTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/src/FunctionalJavascript/ContributionIatsTest.php b/tests/src/FunctionalJavascript/ContributionIatsTest.php index 66f018cdf..2929b67c7 100644 --- a/tests/src/FunctionalJavascript/ContributionIatsTest.php +++ b/tests/src/FunctionalJavascript/ContributionIatsTest.php @@ -269,10 +269,11 @@ public function testSubmitContribution() { 'postal_code' => '53177', ]; $this->fillBillingFields($billingValues); + $this->createScreenshot($this->htmlOutputDirectory . '/legacy_billingfields.png'); + $this->getSession()->getPage()->pressButton('Submit'); // throw new \Exception(var_export($this->htmlOutputDirectory, TRUE)); - $this->createScreenshot($this->htmlOutputDirectory . '/legacy_billingfields.png'); $this->htmlOutput(); $this->assertPageNoErrorMessages(); $this->assertSession()->pageTextContains('New submission added to CiviCRM Webform Test.'); From ca9a2523e8cfd36e690f210fb195199473688fe6 Mon Sep 17 00:00:00 2001 From: KarinG Date: Sat, 3 Feb 2024 17:42:52 -0700 Subject: [PATCH 4/5] Update WebformCivicrmTestBase.php --- tests/src/FunctionalJavascript/WebformCivicrmTestBase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php b/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php index 048ccd17d..889b2d3e4 100644 --- a/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php +++ b/tests/src/FunctionalJavascript/WebformCivicrmTestBase.php @@ -674,6 +674,9 @@ protected function enableBillingSection() { protected function fillBillingFields($params) { $this->getSession()->getPage()->fillField('Billing First Name', $params['first_name']); $this->getSession()->getPage()->fillField('Billing Last Name', $params['last_name']); + + $this->createScreenshot($this->htmlOutputDirectory . '/legacy_billingfields.png'); + $this->getSession()->getPage()->fillField('Street Address', $params['street_address']); $this->getSession()->getPage()->fillField('City', $params['city']); From f523e45a46eed8714230cff5bd3c9b27754c8c28 Mon Sep 17 00:00:00 2001 From: KarinG Date: Sun, 4 Feb 2024 09:06:54 -0700 Subject: [PATCH 5/5] Update MultiCustomFieldsSubmissionTest.php --- .../FunctionalJavascript/MultiCustomFieldsSubmissionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/FunctionalJavascript/MultiCustomFieldsSubmissionTest.php b/tests/src/FunctionalJavascript/MultiCustomFieldsSubmissionTest.php index ff0bcd041..8657e519b 100644 --- a/tests/src/FunctionalJavascript/MultiCustomFieldsSubmissionTest.php +++ b/tests/src/FunctionalJavascript/MultiCustomFieldsSubmissionTest.php @@ -141,7 +141,7 @@ public function testAnonymousSubmitWithContribution() { $billingValues = [ 'first_name' => 'The', - 'last_name' => 'Weeknd', + 'last_name' => "O'Week-nd", 'street_address' => 'Raymond James Stadium', 'city' => 'Tampa', 'country' => '1228',