diff --git a/core/modules/system/tests/src/Functional/Common/NoJavaScriptAnonymousTest.php b/core/modules/system/tests/src/Functional/Common/NoJavaScriptAnonymousTest.php
index 453f43cf8f7dec3161ac81347e9e37e70ef2f3b4..0cb676e28c5ba7af21591b35d785760543cca8fb 100644
--- a/core/modules/system/tests/src/Functional/Common/NoJavaScriptAnonymousTest.php
+++ b/core/modules/system/tests/src/Functional/Common/NoJavaScriptAnonymousTest.php
@@ -21,46 +21,9 @@ class NoJavaScriptAnonymousTest extends BrowserTestBase {
   protected $defaultTheme = 'stark';
 
   /**
-   * Modules to enable.
-   *
-   * This is a list of modules that are enabled in the 'standard' profile.
-   *
-   * @var array
+   * {@inheritdoc}
    */
-  protected static $modules = [
-    'node',
-    'history',
-    'block',
-    'breakpoint',
-    'ckeditor',
-    'config',
-    'comment',
-    'contextual',
-    'contact',
-    'menu_link_content',
-    'datetime',
-    'block_content',
-    'editor',
-    'help',
-    'image',
-    'menu_ui',
-    'options',
-    'path',
-    'page_cache',
-    'dynamic_page_cache',
-    'big_pipe',
-    'taxonomy',
-    'dblog',
-    'search',
-    'shortcut',
-    'toolbar',
-    'field_ui',
-    'file',
-    'views',
-    'views_ui',
-    'tour',
-    'automated_cron',
-  ];
+  protected $profile = 'standard';
 
   /**
    * {@inheritdoc}
@@ -77,7 +40,6 @@ protected function setUp(): void {
    */
   public function testNoJavaScript() {
     // Create a node of content type 'article' that is listed on the frontpage.
-    $this->drupalCreateContentType(['type' => 'article']);
     $this->drupalCreateNode([
       'type' => 'article',
       'promote' => NodeInterface::PROMOTED,