protected function AutosaveFormTestBase::waitForAutosaveResumeButtonToDisappear in Autosave Form 8
Waits for the autosave restore button to disappear.
Parameters
int $timeout: (Optional) Timeout in milliseconds, defaults to 30000.
Return value
bool TRUE, if the element has disappeared, FALSE otherwise.
1 call to AutosaveFormTestBase::waitForAutosaveResumeButtonToDisappear()
- AutosaveFormTestBase::reloadPageAndRestore in tests/
src/ FunctionalJavascript/ AutosaveFormTestBase.php - Loads the page and submits the autosave restore.
File
- tests/
src/ FunctionalJavascript/ AutosaveFormTestBase.php, line 199
Class
- AutosaveFormTestBase
- Basic functionality for autosave form tests.
Namespace
Drupal\Tests\autosave_form\FunctionalJavascriptCode
protected function waitForAutosaveResumeButtonToDisappear($timeout = 30000) {
$restored = $this
->waitForElementToDisappear('css', '.autosave-form-resume-button', $timeout);
$this
->logHtmlOutput(__FUNCTION__ . ' after resume button disappears');
$this
->assertTrue($restored);
return $restored;
}