Loading core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -155,6 +155,7 @@ public function testLayoutBuilderUi(): void { // Save the layout, and the new block is visible. $page->pressButton('Save layout'); $this->assertTrue($assert_session->waitForText('The layout override has been saved.')); $assert_session->addressEquals($node_url); $assert_session->pageTextContains('Powered by Drupal'); $assert_session->pageTextContains('This is the label'); Loading Loading @@ -192,6 +193,7 @@ public function testLayoutBuilderUi(): void { // Ensure the dragged block is still in the correct position after save. $page->pressButton('Save layout'); $this->assertTrue($assert_session->waitForText('The layout override has been saved.')); $assert_session->elementExists('css', '.layout__region--second .block-system-powered-by-block'); $assert_session->elementTextContains('css', '.layout__region--second', 'Powered by Drupal'); Loading Loading @@ -227,6 +229,7 @@ public function testLayoutBuilderUi(): void { $this->assertPageNotReloaded(); $page->pressButton('Save layout'); $this->assertTrue($assert_session->waitForText('The layout override has been saved.')); $assert_session->elementExists('css', '.layout'); // Test deriver-based blocks. Loading Loading @@ -258,6 +261,7 @@ public function testLayoutBuilderUi(): void { $this->assertPageNotReloaded(); $page->pressButton('Save layout'); $this->assertTrue($assert_session->waitForText('The layout override has been saved.')); // Removing all sections results in no layout being used. $assert_session->addressEquals($node_url); Loading Loading
core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -155,6 +155,7 @@ public function testLayoutBuilderUi(): void { // Save the layout, and the new block is visible. $page->pressButton('Save layout'); $this->assertTrue($assert_session->waitForText('The layout override has been saved.')); $assert_session->addressEquals($node_url); $assert_session->pageTextContains('Powered by Drupal'); $assert_session->pageTextContains('This is the label'); Loading Loading @@ -192,6 +193,7 @@ public function testLayoutBuilderUi(): void { // Ensure the dragged block is still in the correct position after save. $page->pressButton('Save layout'); $this->assertTrue($assert_session->waitForText('The layout override has been saved.')); $assert_session->elementExists('css', '.layout__region--second .block-system-powered-by-block'); $assert_session->elementTextContains('css', '.layout__region--second', 'Powered by Drupal'); Loading Loading @@ -227,6 +229,7 @@ public function testLayoutBuilderUi(): void { $this->assertPageNotReloaded(); $page->pressButton('Save layout'); $this->assertTrue($assert_session->waitForText('The layout override has been saved.')); $assert_session->elementExists('css', '.layout'); // Test deriver-based blocks. Loading Loading @@ -258,6 +261,7 @@ public function testLayoutBuilderUi(): void { $this->assertPageNotReloaded(); $page->pressButton('Save layout'); $this->assertTrue($assert_session->waitForText('The layout override has been saved.')); // Removing all sections results in no layout being used. $assert_session->addressEquals($node_url); Loading