Loading core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ use Drupal\FunctionalJavascriptTests\WebDriverTestBase; use Drupal\Tests\contextual\FunctionalJavascript\ContextualLinkClickTrait; use Drupal\Tests\system\Traits\OffCanvasTestTrait; /** * Tests toggling of content preview. Loading @@ -14,7 +15,7 @@ class ContentPreviewToggleTest extends WebDriverTestBase { use ContextualLinkClickTrait; use LayoutBuilderSortTrait; use OffCanvasTestTrait; /** * {@inheritdoc} */ Loading @@ -23,6 +24,7 @@ class ContentPreviewToggleTest extends WebDriverTestBase { 'block', 'node', 'contextual', 'off_canvas_test', ]; /** Loading Loading @@ -50,7 +52,6 @@ protected function setUp(): void { * Tests the content preview toggle. */ public function testContentPreviewToggle() { $this->markTestSkipped(); $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $links_field_placeholder_label = '"Links" field'; Loading Loading @@ -92,7 +93,6 @@ public function testContentPreviewToggle() { $this->getSession()->reload(); $this->assertNotEmpty($assert_session->waitForElement('css', '.layout-builder-block__content-preview-placeholder-label')); $assert_session->pageTextNotContains($content_preview_body_text); $this->markTestSkipped('Temporarily skipped due to random failures.'); $this->assertContextualLinks(); // Confirm repositioning blocks works with content preview disabled. Loading Loading @@ -133,7 +133,7 @@ protected function assertContextualLinks(): void { $assert_session = $this->assertSession(); $this->clickContextualLink('.block-field-blocknodebundle-for-this-particular-testbody', 'Configure'); $this->assertNotEmpty($assert_session->waitForElement('css', "#drupal-off-canvas")); $this->waitForOffCanvasArea(); $this->assertSession()->assertWaitOnAjaxRequest(); $this->assertNotEmpty($this->assertSession()->waitForButton('Close')); $page->pressButton('Close'); Loading Loading
core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php +4 −4 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ use Drupal\FunctionalJavascriptTests\WebDriverTestBase; use Drupal\Tests\contextual\FunctionalJavascript\ContextualLinkClickTrait; use Drupal\Tests\system\Traits\OffCanvasTestTrait; /** * Tests toggling of content preview. Loading @@ -14,7 +15,7 @@ class ContentPreviewToggleTest extends WebDriverTestBase { use ContextualLinkClickTrait; use LayoutBuilderSortTrait; use OffCanvasTestTrait; /** * {@inheritdoc} */ Loading @@ -23,6 +24,7 @@ class ContentPreviewToggleTest extends WebDriverTestBase { 'block', 'node', 'contextual', 'off_canvas_test', ]; /** Loading Loading @@ -50,7 +52,6 @@ protected function setUp(): void { * Tests the content preview toggle. */ public function testContentPreviewToggle() { $this->markTestSkipped(); $assert_session = $this->assertSession(); $page = $this->getSession()->getPage(); $links_field_placeholder_label = '"Links" field'; Loading Loading @@ -92,7 +93,6 @@ public function testContentPreviewToggle() { $this->getSession()->reload(); $this->assertNotEmpty($assert_session->waitForElement('css', '.layout-builder-block__content-preview-placeholder-label')); $assert_session->pageTextNotContains($content_preview_body_text); $this->markTestSkipped('Temporarily skipped due to random failures.'); $this->assertContextualLinks(); // Confirm repositioning blocks works with content preview disabled. Loading Loading @@ -133,7 +133,7 @@ protected function assertContextualLinks(): void { $assert_session = $this->assertSession(); $this->clickContextualLink('.block-field-blocknodebundle-for-this-particular-testbody', 'Configure'); $this->assertNotEmpty($assert_session->waitForElement('css', "#drupal-off-canvas")); $this->waitForOffCanvasArea(); $this->assertSession()->assertWaitOnAjaxRequest(); $this->assertNotEmpty($this->assertSession()->waitForButton('Close')); $page->pressButton('Close'); Loading