Skip to content

Commit a223c33

Browse files
authored
Merge pull request #144 from Kit/fix-create-subscriber-with-invalid-custom-field-test
Tests: Fix `testCreateFormWithInvalidCustomField`
2 parents d86923e + 95bbfb7 commit a223c33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/EndToEnd/forms/FormBackwardCompatCest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ public function testCreateFormWithInvalidCustomField(EndToEndTester $I)
323323
$I->waitForElementVisible('.wpforms-confirmation-scroll');
324324
$I->seeInSource('Thanks for contacting us! We will be in touch with you shortly.');
325325

326-
// Check API to confirm subscriber was sent.
327-
$I->apiCheckSubscriberExists($I, $emailAddress, $firstName);
326+
// Check subscriber does not exist, as specifying an invalid custom field will result in an API error.
327+
$I->apiCheckSubscriberDoesNotExist($I, $emailAddress);
328328
}
329329

330330
/**

0 commit comments

Comments
 (0)