From 95bbfb7dceeedfe897e51f57fc3f1e5c2ca646bb Mon Sep 17 00:00:00 2001 From: Tim Carr Date: Fri, 15 May 2026 20:12:36 +0800 Subject: [PATCH] Tests: Fix `testCreateFormWithInvalidCustomField` --- tests/EndToEnd/forms/FormBackwardCompatCest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/EndToEnd/forms/FormBackwardCompatCest.php b/tests/EndToEnd/forms/FormBackwardCompatCest.php index edb0686..6c80d12 100644 --- a/tests/EndToEnd/forms/FormBackwardCompatCest.php +++ b/tests/EndToEnd/forms/FormBackwardCompatCest.php @@ -323,8 +323,8 @@ public function testCreateFormWithInvalidCustomField(EndToEndTester $I) $I->waitForElementVisible('.wpforms-confirmation-scroll'); $I->seeInSource('Thanks for contacting us! We will be in touch with you shortly.'); - // Check API to confirm subscriber was sent. - $I->apiCheckSubscriberExists($I, $emailAddress, $firstName); + // Check subscriber does not exist, as specifying an invalid custom field will result in an API error. + $I->apiCheckSubscriberDoesNotExist($I, $emailAddress); } /**