public function LayoutBuilderRestrictionsTestBase::navigateToNodeSettingsTray in Layout Builder Restrictions 8.2
Navigation helper.
7 calls to LayoutBuilderRestrictionsTestBase::navigateToNodeSettingsTray()
- BlacklistedRestrictionsTest::testBlockRestriction in tests/
src/ FunctionalJavascript/ BlacklistedRestrictionsTest.php - Verify that the UI can restrict blocks in Layout Builder settings tray.
- BlockPlacementBlacklistTest::testBlockRestriction in modules/
layout_builder_restrictions_by_region/ tests/ src/ FunctionalJavascript/ BlockPlacementBlacklistTest.php - Verify that the UI can restrict blocks in Layout Builder settings tray.
- DefaultRestrictionsTest::testNewCategoriesAllowed in tests/
src/ FunctionalJavascript/ DefaultRestrictionsTest.php - When new categories are allowed, a newly available block is allowed.
- DefaultRestrictionsTest::testNewCategoriesRestricted in tests/
src/ FunctionalJavascript/ DefaultRestrictionsTest.php - When new categories are restricted, a newly available block is restricted.
- LanguageCategoriesTest::testBlockRestriction in tests/
src/ FunctionalJavascript/ LanguageCategoriesTest.php - Verify that the UI can restrict blocks in Layout Builder settings tray.
File
- tests/
src/ FunctionalJavascript/ LayoutBuilderRestrictionsTestBase.php, line 88
Class
- LayoutBuilderRestrictionsTestBase
- General-purpose methods for testing restrictions.
Namespace
Drupal\Tests\layout_builder_restrictions\FunctionalJavascriptCode
public function navigateToNodeSettingsTray($node_id) {
$this
->drupalGet('/node/' . $node_id . '/layout');
$this
->clickLink('Add block');
$this
->assertNotEmpty($this
->assertSession()
->waitForText('Choose a block'));
}