Skip to content

Commit

Permalink
[TASK] Change expected validation message in acceptance tests
Browse files Browse the repository at this point in the history
Refs #1293
  • Loading branch information
derhansen committed Oct 20, 2024
1 parent 4c2c7fb commit b1a3a02
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Tests/Acceptance/AbstractEventsTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public function validationWorksForSimpleEvent(AcceptanceTester $I)
$I->click('Registration');
$I->click('Send registration');
// Firstname (2), Lastname (3), Company (5) and Email (10)
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.firstname"]/span');
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.lastname"]/span');
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.company"]/span');
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.email"]/span');
$I->see('This field is required.', '//*[@id="field-errors-registration.firstname"]/span');
$I->see('This field is required.', '//*[@id="field-errors-registration.lastname"]/span');
$I->see('This field is required.', '//*[@id="field-errors-registration.company"]/span');
$I->see('This field is required.', '//*[@id="field-errors-registration.email"]/span');

$I->fillField(['id' => 'firstname'], 'John');
$I->fillField(['id' => 'lastname'], 'Doe');
Expand Down Expand Up @@ -127,11 +127,11 @@ public function validationWorksForEventWithRegFields(AcceptanceTester $I)
$I->see('Registration', 'a');
$I->click('Registration');
$I->click('Send registration');
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.firstname"]/span');
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.lastname"]/span');
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.company"]/span');
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.email"]/span');
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.fields.2"]/span');
$I->see('This field is required.', '//*[@id="field-errors-registration.firstname"]/span');
$I->see('This field is required.', '//*[@id="field-errors-registration.lastname"]/span');
$I->see('This field is required.', '//*[@id="field-errors-registration.company"]/span');
$I->see('This field is required.', '//*[@id="field-errors-registration.email"]/span');
$I->see('This field is required.', '//*[@id="field-errors-registration.fields.2"]/span');
}

public function registrationWorksForEventWithRegFields(AcceptanceTester $I)
Expand Down

0 comments on commit b1a3a02

Please sign in to comment.