Skip to content
Snippets Groups Projects
Verified Commit 1c15c0f3 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3468827 by catch, smustgrave: Speed up BigPipeRegressionTest

(cherry picked from commit aae2ffb6)
parent 5ce4705c
No related branches found
No related tags found
2 merge requests!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...
Pipeline #259612 passed with warnings
Pipeline: drupal

#259621

    Pipeline: drupal

    #259616

      ......@@ -114,13 +114,22 @@ public function testMessages_2712935(): void {
      }
      }
      /**
      * Tests edge cases with placeholder HTML.
      */
      public function testPlaceholderHtmlEdgeCases(): void {
      $this->drupalLogin($this->drupalCreateUser());
      $this->doTestPlaceholderInParagraph_2802923();
      $this->doTestBigPipeLargeContent();
      $this->doTestMultipleReplacements();
      }
      /**
      * Ensure default BigPipe placeholder HTML cannot split paragraphs.
      *
      * @see https://www.drupal.org/node/2802923
      */
      public function testPlaceholderInParagraph_2802923(): void {
      $this->drupalLogin($this->drupalCreateUser());
      protected function doTestPlaceholderInParagraph_2802923(): void {
      $this->drupalGet(Url::fromRoute('big_pipe_regression_test.2802923'));
      $this->assertJsCondition('document.querySelectorAll(\'p\').length === 1');
      ......@@ -132,9 +141,7 @@ public function testPlaceholderInParagraph_2802923(): void {
      * Repeat loading of same page for two times, after second time the page is
      * cached and the bug consistently reproducible.
      */
      public function testBigPipeLargeContent(): void {
      $user = $this->drupalCreateUser();
      $this->drupalLogin($user);
      public function doTestBigPipeLargeContent(): void {
      $assert_session = $this->assertSession();
      $this->drupalGet(Url::fromRoute('big_pipe_test_large_content'));
      ......@@ -160,7 +167,7 @@ public function testBigPipeLargeContent(): void {
      *
      * @see https://www.drupal.org/node/3390178
      */
      public function testMultipleReplacements(): void {
      protected function doTestMultipleReplacements(): void {
      $user = $this->drupalCreateUser();
      $this->drupalLogin($user);
      ......
      0% Loading or .
      You are about to add 0 people to the discussion. Proceed with caution.
      Finish editing this message first!
      Please register or to comment