function WebDriverTestBase::assertSession
Same name and namespace in other branches
- 10 core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::assertSession()
- 9 core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::assertSession()
- 8.9.x core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::assertSession()
- main core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php \Drupal\FunctionalJavascriptTests\WebDriverTestBase::assertSession()
Returns WebAssert object.
Parameters
string $name: (optional) Name of the session. Defaults to the active session.
Return value
\Drupal\FunctionalJavascriptTests\WebDriverWebAssert A new web-assert option for asserting the presence of elements with.
Overrides UiHelperTrait::assertSession
324 calls to WebDriverTestBase::assertSession()
- AdminAjaxTest::testAjaxRebuild in core/
modules/ views_ui/ tests/ src/ FunctionalJavascript/ AdminAjaxTest.php - Confirms that form_alter is triggered after AJAX rebuilds.
- AdminCompactModeTest::testAdminCompactMode in core/
modules/ system/ tests/ src/ FunctionalJavascript/ AdminCompactModeTest.php - Tests that filter results announcement has correct pluralization.
- AdminModalDisplayTest::testModalAddAnother in core/
tests/ Drupal/ FunctionalJavascriptTests/ Theme/ AdminModalDisplayTest.php - Tests the position f "add another" button in dialogs.
- AdminUiTest::testFilterCheckboxesToggleSettings in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php - Test that filter settings are only visible when the filter is enabled.
- AdminUiTest::testImageUploadSettingsAreValidated in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php - Tests that image upload settings (stored out of band) are validated too.
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ WebDriverTestBase.php, line 204
Class
- WebDriverTestBase
- Runs a browser test using a driver that supports JavaScript.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function assertSession($name = NULL) {
return new WebDriverWebAssert($this->getSession($name), $this->baseUrl);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.