diff --git a/core/modules/workflows/tests/src/Functional/WorkflowUiNoTypeTest.php b/core/modules/workflows/tests/src/Functional/WorkflowUiNoTypeTest.php
index 94c862e6b4..bb7a6d9b31 100644
--- a/core/modules/workflows/tests/src/Functional/WorkflowUiNoTypeTest.php
+++ b/core/modules/workflows/tests/src/Functional/WorkflowUiNoTypeTest.php
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\workflows\Functional;
 
+use Drupal\Core\Url;
 use Drupal\Tests\BrowserTestBase;
 
 /**
@@ -46,6 +47,16 @@ public function testWorkflowUiWithNoType() {
     $this->assertSession()->linkExists('Content Moderation');
     $this->assertSession()->pageTextNotContains('Add workflow');
 
+    $this->clickLink('Content Moderation');
+
+    $modules_list_url_absolute = Url::fromRoute('system.modules_list', [], [
+      'fragment' => 'module-content-moderation',
+      'absolute' => TRUE,
+    ])->toString();
+    $this->assertSame($this->getSession()->getCurrentUrl(), $modules_list_url_absolute);
+    // The current user does not have the 'administer modules' permission.
+    $this->assertSession()->statusCodeEquals(403);
+
     $this->container->get('module_installer')->install(['workflow_type_test']);
     // The render cache needs to be cleared because although the cache tags are
     // correctly set the render cache does not pick it up.
