function BigPipeRegressionTest::testPlaceholderInParagraph_2802923

Same name in other branches
  1. 9 core/modules/big_pipe/tests/src/FunctionalJavascript/BigPipeRegressionTest.php \Drupal\Tests\big_pipe\FunctionalJavascript\BigPipeRegressionTest::testPlaceholderInParagraph_2802923()

Ensure default BigPipe placeholder HTML cannot split paragraphs.

See also

https://www.drupal.org/node/2802923

File

core/modules/big_pipe/tests/src/FunctionalJavascript/BigPipeRegressionTest.php, line 197

Class

BigPipeRegressionTest
BigPipe regression tests.

Namespace

Drupal\Tests\big_pipe\FunctionalJavascript

Code

public function testPlaceholderInParagraph_2802923() {
    $this->drupalLogin($this->drupalCreateUser());
    $this->drupalGet(Url::fromRoute('big_pipe_regression_test.2802923'));
    $this->assertJsCondition('document.querySelectorAll(\'p\').length === 1');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.