0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-06 23:10:03 +00:00
salesagility_SuiteCRM/tests/_support/Step/Acceptance/EditView.php
Connor Shea 4430e0930e Remove explicit timeouts in acceptance tests.
This removes explicit timeouts from all calls to waitForElementVisible
in the acceptance test suite. If a page failed to load, the test would
wait for the entire timeout before failing. This made running the
test suite locally pretty painful.

Generally, most of these should never take more than
the default 10 second timeout, so they're unnecessary.
2019-06-17 11:29:46 -06:00

24 lines
455 B
PHP

<?php
namespace Step\Acceptance;
use \AcceptanceTester as Tester;
class EditView extends Tester
{
/**
* Wait for for the edit view to become visible
*/
public function waitForEditViewVisible()
{
$I = $this;
$I->waitForElementVisible('#EditView');
}
public function clickSaveButton()
{
$I = $this;
$I->executeJS('window.scrollTo(0,0); return true;');
$I->click('Save');
}
}