You are here

public function BigPipeRegressionTest::testPlaceholderInParagraph_2802923 in Drupal 9

Same name and namespace in other branches
  1. 8 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 201

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');
}