Skip to content

Commit a76a237

Browse files
committed
Merge remote-tracking branch 'origin/fix-create-subscriber-with-invalid-custom-field-test' into test-wp-7.0
2 parents 9aa801b + 95bbfb7 commit a76a237

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)