diff --git a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php index a44bea1..fa0ad13 100644 --- a/core/modules/node/tests/src/Functional/NodeTranslationUITest.php +++ b/core/modules/node/tests/src/Functional/NodeTranslationUITest.php @@ -21,13 +21,15 @@ class NodeTranslationUITest extends ContentTranslationUITestBase { */ protected $defaultCacheContexts = [ 'languages:language_interface', - 'session', 'theme', 'route', 'timezone', 'url.path.parent', 'url.query_args:_wrapper_format', - 'user' + 'user.roles', + // These two cache contexts are added by BigPipe. + 'cookies:big_pipe_nojs', + 'session.exists', ]; /** diff --git a/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php b/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php index be704d1..7b6eb85 100644 --- a/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php +++ b/core/modules/page_cache/src/Tests/PageCacheTagsIntegrationTest.php @@ -76,6 +76,9 @@ public function testPageCacheTags() { // condition. 'url.path', 'url.query_args:' . MainContentViewSubscriber::WRAPPER_FORMAT, + // These two cache contexts are added by BigPipe. + 'cookies:big_pipe_nojs', + 'session.exists', ]; // Full node page 1. diff --git a/core/modules/system/src/Tests/Installer/StandardInstallerTest.php b/core/modules/system/src/Tests/Installer/StandardInstallerTest.php index b0ceef9..3132be2 100644 --- a/core/modules/system/src/Tests/Installer/StandardInstallerTest.php +++ b/core/modules/system/src/Tests/Installer/StandardInstallerTest.php @@ -18,11 +18,8 @@ class StandardInstallerTest extends ConfigAfterInstallerTestBase { * Ensures that the user page is available after installation. */ public function testInstaller() { - // Verify that the confirmation message appears. - require_once \Drupal::root() . '/core/includes/install.inc'; - $this->assertRaw(t('Congratulations, you installed @drupal!', [ - '@drupal' => drupal_install_profile_distribution_name(), - ])); + // Verify that the Standard install profile's default frontpage appears. + $this->assertRaw('No front page content has been created yet.'); } /** diff --git a/core/profiles/standard/standard.info.yml b/core/profiles/standard/standard.info.yml index 82af32e..7fbaec6 100644 --- a/core/profiles/standard/standard.info.yml +++ b/core/profiles/standard/standard.info.yml @@ -26,6 +26,7 @@ dependencies: - path - page_cache - dynamic_page_cache + - big_pipe - taxonomy - dblog - search diff --git a/core/profiles/standard/tests/src/Functional/StandardTest.php b/core/profiles/standard/tests/src/FunctionalJavascript/StandardTest.php similarity index 95% rename from core/profiles/standard/tests/src/Functional/StandardTest.php rename to core/profiles/standard/tests/src/FunctionalJavascript/StandardTest.php index f449c10..824ddc1 100644 --- a/core/profiles/standard/tests/src/Functional/StandardTest.php +++ b/core/profiles/standard/tests/src/FunctionalJavascript/StandardTest.php @@ -1,13 +1,13 @@ drupalLogin($this->adminUser); $this->drupalGet('node/1'); - $this->assertRaw('Then she picked out two somebodies,
Sally and me', 'Found a line break.'); + $this->assertJsCondition('document.querySelectorAll(\'script[data-big-pipe-event="stop"]\').length === 1'); + $this->assertRaw('Then she picked out two somebodies,
Sally and me', 'Found a line break.'); $this->drupalPostForm(NULL, [ 'subject[0][value]' => 'Barfoo', 'comment_body[0][value]' => 'Then she picked out two somebodies, Sally and me',