protected function AutosaveFormTest::pressRejectButton in Thunder 6.1.x
Same name and namespace in other branches
- 8.5 tests/src/FunctionalJavascript/Integration/AutosaveFormTest.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\AutosaveFormTest::pressRejectButton()
- 8.3 tests/src/FunctionalJavascript/Integration/AutosaveFormTest.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\AutosaveFormTest::pressRejectButton()
- 8.4 tests/src/FunctionalJavascript/Integration/AutosaveFormTest.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\AutosaveFormTest::pressRejectButton()
- 6.2.x tests/src/FunctionalJavascript/Integration/AutosaveFormTest.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\AutosaveFormTest::pressRejectButton()
- 6.0.x tests/src/FunctionalJavascript/Integration/AutosaveFormTest.php \Drupal\Tests\thunder\FunctionalJavascript\Integration\AutosaveFormTest::pressRejectButton()
Press the reject button.
1 call to AutosaveFormTest::pressRejectButton()
- AutosaveFormTest::testAutosaveInExistingEntity in tests/
src/ FunctionalJavascript/ Integration/ AutosaveFormTest.php - Tests the autosave functionality in an existing article.
File
- tests/
src/ FunctionalJavascript/ Integration/ AutosaveFormTest.php, line 86
Class
- AutosaveFormTest
- Tests the autosave support for nodes in Thunder.
Namespace
Drupal\Tests\thunder\FunctionalJavascript\IntegrationCode
protected function pressRejectButton() {
$page = $this
->getSession()
->getPage();
// Press restore button.
$this
->assertSession()
->waitForText('A version of this page you were editing at');
$reject_button = $page
->find('css', '.autosave-form-reject-button');
$reject_button
->press();
}