Skip to content

Commit 8ce9e18

Browse files
committed
CI: Test userLogin action with more wait time - refs #7149
1 parent ab09a28 commit 8ce9e18

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/behat/features/actionUserLogin.feature

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ Feature: Login user
22

33
Scenario: Login as admin user successfully
44
Given I am on "/login"
5-
Then wait very long for the page to be loaded
5+
And wait very long for the page to be loaded
66
Then I should see "Sign in"
7-
And I fill in "admin" for "login"
7+
When I fill in "admin" for "login"
88
And I fill in "admin" for "password"
9-
Then I press "Sign in"
10-
Then wait very long for the page to be loaded
9+
And I press "Sign in"
10+
And wait very long for the page to be loaded
1111
#Then I should see "MyCourses"
1212
Then I should not see an error
1313

1414
Scenario: Login as admin
1515
Given I am a platform administrator
16+
And wait very long for the page to be loaded
1617
Then I should not see an error

tests/behat/features/bootstrap/FeatureContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public function waitForThePageToBeLoaded()
464464
}
465465

466466
/**
467-
* @When /^wait very long for the page to be loaded$/
467+
* @When /^(?:|I )wait very long for the page to be loaded$/
468468
*/
469469
public function waitVeryLongForThePageToBeLoaded()
470470
{

0 commit comments

Comments
 (0)