mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-02-06 23:10:03 +00:00
4430e0930e
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.
24 lines
455 B
PHP
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');
|
|
}
|
|
}
|