protected function OffCanvasTestBase::assertPageLoadComplete in Drupal 9
Same name and namespace in other branches
- 8 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()
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 28
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();
}
}