Skip to content

Commit acb5a66

Browse files
committed
[TASK] Adapt acceptance tests
1 parent 9ed9b10 commit acb5a66

2 files changed

Lines changed: 26 additions & 25 deletions

File tree

Tests/Acceptance/AbstractEventsTests.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function validationWorksForSimpleEvent(AcceptanceTester $I)
7777
$I->see('Registration', 'a');
7878
$I->click('Registration');
7979
$I->click('Send registration');
80-
$I->waitForElementVisible('#registration-submit', 1);
80+
$I->waitForElementVisible('#registration-submit', 3);
8181

8282
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.firstname"]/span');
8383
$I->see('The given subject was empty.', '//*[@id="field-errors-registration.lastname"]/span');
@@ -89,8 +89,8 @@ public function validationWorksForSimpleEvent(AcceptanceTester $I)
8989
$I->fillField(['id' => 'company'], 'TYPO3');
9090
$I->fillField(['id' => 'email'], 'invalid-email');
9191
$I->click('Send registration');
92-
$I->waitForElementVisible('#registration-submit', 2);
93-
$I->see('The given subject was not a valid email address.', '//*[@id="field-errors-registration.email"]/span');
92+
$I->waitForElementVisible('#registration-submit', 3);
93+
$I->see('The given subject was not a valid email address.');
9494
}
9595

9696
public function registrationWorksForSimpleEvent(AcceptanceTester $I)
@@ -269,7 +269,7 @@ public function eventTitleTranslatedInUserRegistration(AcceptanceTester $I)
269269
{
270270
$I->amOnPage($this->basePath . 'login');
271271
$I->fillField(['name' => 'user'], 'user1');
272-
$I->fillField(['name' => 'pass'], '123456');
272+
$I->fillField(['name' => 'pass'], 'SfEventMgt123456#');
273273
$I->click('Login');
274274

275275
$I->waitForText('My event registrations', 5);
@@ -281,6 +281,7 @@ public function eventTitleTranslatedInUserRegistration(AcceptanceTester $I)
281281

282282
public function registrationWorksForEventWithMultiReg(AcceptanceTester $I)
283283
{
284+
$I->deleteAllEventRegistrations();
284285
$I->deleteAllEmails();
285286

286287
$I->amOnPage($this->basePath . 'event-list-all');

0 commit comments

Comments
 (0)