function BigPipeRegressionTest::doTestPlaceholderInParagraph_2802923

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

Ensure default BigPipe placeholder HTML cannot split paragraphs.

See also

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

1 call to BigPipeRegressionTest::doTestPlaceholderInParagraph_2802923()
BigPipeRegressionTest::testPlaceholderHtmlEdgeCases in core/modules/big_pipe/tests/src/FunctionalJavascript/BigPipeRegressionTest.php
Tests edge cases with placeholder HTML.

File

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

Class

BigPipeRegressionTest
BigPipe regression tests.

Namespace

Drupal\Tests\big_pipe\FunctionalJavascript

Code

protected function doTestPlaceholderInParagraph_2802923() : void {
    $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.