protected function TranslationTestTrait::assertNonTranslationActionsRemoved in Layout Builder Symmetric Translations 8
Asserts that non-trans actions have been removed.
4 calls to TranslationTestTrait::assertNonTranslationActionsRemoved()
- InlineBlockTranslationTest::testInlineBlockContentTranslation in tests/
src/ FunctionalJavascript/ InlineBlockTranslationTest.php - Tests that inline blocks works with content translation.
- LayoutBuilderTranslationTest::testLayoutPerTranslation in tests/
src/ Functional/ LayoutBuilderTranslationTest.php - Tests that the Layout Builder UI works with translated content.
- ModeratedTranslationTest::testModerationTranslatedOverrides in tests/
src/ FunctionalJavascript/ ModeratedTranslationTest.php - Tests a layout overrides that are moderated and translated.
- TranslationTest::testLabelTranslation in tests/
src/ FunctionalJavascript/ TranslationTest.php - Tests that block labels can be translated.
File
- tests/
src/ Functional/ TranslationTestTrait.php, line 13
Class
- TranslationTestTrait
- Common functions for testing Layout Builder with translations.
Namespace
Drupal\Tests\layout_builder_st\FunctionalCode
protected function assertNonTranslationActionsRemoved() {
/** @var \Drupal\Tests\WebAssert $assert_session */
$assert_session = $this
->assertSession();
// Confirm that links do not exist to change the layout.
$assert_session
->linkNotExists('Add Section');
$assert_session
->linkNotExists('Add Block');
$assert_session
->linkNotExists('Remove section');
$assert_session
->elementNotExists('css', '[data-contextual-id^="layout_builder_block:"]');
$assert_session
->buttonNotExists('Revert to defaults');
}