Loading core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php +4 −0 Original line number Diff line number Diff line Loading @@ -153,6 +153,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 @@ -190,6 +191,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 @@ -225,6 +227,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 @@ -256,6 +259,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 @@ -153,6 +153,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 @@ -190,6 +191,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 @@ -225,6 +227,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 @@ -256,6 +259,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