function OffCanvasTestBase::assertPageLoadComplete
Same name in other branches
- 8.9.x core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::assertPageLoadComplete()
- 10 core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::assertPageLoadComplete()
- 11.x core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php \Drupal\Tests\system\FunctionalJavascript\OffCanvasTestBase::assertPageLoadComplete()
Assert the page is completely loaded.
Ajax requests may happen after page loads. Also for users who have access to contextual links the contextual link placeholders will be filled after the page is received.
2 calls to OffCanvasTestBase::assertPageLoadComplete()
- OffCanvasTestBase::drupalGet in core/
modules/ system/ tests/ src/ FunctionalJavascript/ OffCanvasTestBase.php - Retrieves a Drupal path or an absolute path.
- SettingsTrayBlockFormTest::doTestBlocks in core/
modules/ settings_tray/ tests/ src/ FunctionalJavascript/ SettingsTrayBlockFormTest.php - Tests opening off-canvas dialog by click blocks and elements in the blocks.
File
-
core/
modules/ system/ tests/ src/ FunctionalJavascript/ OffCanvasTestBase.php, line 40
Class
- OffCanvasTestBase
- Base class contains common test functionality for the Off-canvas dialog.
Namespace
Drupal\Tests\system\FunctionalJavascriptCode
protected function assertPageLoadComplete() {
$this->assertSession()
->assertWaitOnAjaxRequest();
if ($this->loggedInUser && $this->loggedInUser
->hasPermission('access contextual links')) {
$this->assertAllContextualLinksLoaded();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.