Behat: Add waitVeryLongForThePageToBeLoaded() to wait 6 seconds instead of 3

pull/2744/head
Yannick Warnier 8 years ago
parent 51e98c83b4
commit 57227838b6
  1. 10
      tests/behat/features/bootstrap/FeatureContext.php
  2. 4
      tests/behat/features/toolExercise.feature

@ -358,10 +358,18 @@ class FeatureContext extends MinkContext
*/
public function waitForThePageToBeLoaded()
{
//$this->getSession()->wait(10000, "document.readyState === 'complete'");
$this->getSession()->wait(3000);
}
/**
* @When /^wait very long for the page to be loaded$/
*/
public function waitVeryLongForThePageToBeLoaded()
{
//$this->getSession()->wait(10000, "document.readyState === 'complete'");
$this->getSession()->wait(6000);
}
/**
* @When /^I check the "([^"]*)" radio button$/
*/

@ -384,7 +384,7 @@ Feature: Exercise tool
| none | 80 / 60 | 133.33% |
| Total | 190 / 190 | 100% |
Scenario: Teacher see exercise results by categories
Scenario: Teacher looks at exercise results by categories
Given I am on "/user_portal.php"
And I am on course "TEMP" homepage in session "Session Exercise"
Then I should see "TEMP (Session Exercise)"
@ -392,7 +392,7 @@ Feature: Exercise tool
And I follow "Exercise for Behat test"
And I follow "Results and feedback"
Then I should see "Learner score"
And wait for the page to be loaded
And wait very long for the page to be loaded
And I follow "Grade activity"
Then I should see "Score for the test: 190 / 190"
And I should see the table "#category_results":

Loading…
Cancel
Save