Fix acceptance tests

[MAILPOET-2677]
This commit is contained in:
Amine Ben hammou
2020-03-19 04:30:21 +01:00
committed by Veljko V
parent 3194d93a07
commit d1968dfe50
12 changed files with 55 additions and 35 deletions

View File

@ -27,7 +27,7 @@ class AuthorizedEmailAddressesValidationCest {
$i->cantSee($errorMessagePrefix);
// default sender is invalid
$i->fillField('[data-automation-id="settings-page-from-email-field"]', $unauthorizedSendingEmail);
$i->fillField('[data-automation-id="from-email-field"]', $unauthorizedSendingEmail);
$i->click('[data-automation-id="settings-submit-button"]');
$i->waitForText('Settings saved');
$i->reloadPage();
@ -35,7 +35,7 @@ class AuthorizedEmailAddressesValidationCest {
$i->canSee($unauthorizedSendingEmail, $errorNoticeElement);
// Error message disappears after email is replaced with authorized email
$i->fillField('[data-automation-id="settings-page-from-email-field"]', \AcceptanceTester::AUTHORIZED_SENDING_EMAIL);
$i->fillField('[data-automation-id="from-email-field"]', \AcceptanceTester::AUTHORIZED_SENDING_EMAIL);
$i->click('[data-automation-id="settings-submit-button"]');
$i->waitForText('Settings saved');
$i->reloadPage();