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); } /**