Behat: wait until page is ready

pull/3064/head
Julio 5 years ago
parent a4d605635d
commit b5075feb3c
  1. 21
      tests/behat/features/actionInstall.feature
  2. 8
      tests/behat/features/bootstrap/FeatureContext.php

@ -24,25 +24,6 @@ Feature: Install portal
Then I press "step5"
Then I should see "Last check before install"
Then I press "Install chamilo"
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait very long for the page to be loaded
Then wait the page to be loaded when ready
Then I should see "Step7"

@ -413,6 +413,14 @@ class FeatureContext extends MinkContext
$this->getSession()->wait(8000);
}
/**
* @When /^wait the page to be loaded when ready$/
*/
public function waitVeryLongForThePageToBeLoadedWhenReady()
{
$this->getSession()->wait(10000, "document.readyState === 'complete'");
}
/**
* @When /^I check the "([^"]*)" radio button$/
*/

Loading…
Cancel
Save