diff --git a/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarActiveTrailTest.php b/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarActiveTrailTest.php index 5c698f23f4bf10aa80584043a69b1ca99dbf7445..b12ce9ef54f50c80627f0c292a5dec031c89a18a 100644 --- a/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarActiveTrailTest.php +++ b/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarActiveTrailTest.php @@ -18,14 +18,6 @@ class ToolbarActiveTrailTest extends WebDriverTestBase { */ protected static $modules = ['toolbar', 'node', 'field_ui']; - /** - * {@inheritdoc} - * - * @todo Remove and fix test to not rely on super user. - * @see https://www.drupal.org/project/drupal/issues/3437620 - */ - protected bool $usesSuperUserAccessPolicy = TRUE; - /** * {@inheritdoc} */ @@ -36,8 +28,13 @@ class ToolbarActiveTrailTest extends WebDriverTestBase { */ protected function setUp(): void { parent::setUp(); - $this->drupalLogin($this->rootUser); $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']); + $this->drupalLogin($this->drupalCreateUser([ + 'access administration pages', + 'administer content types', + 'administer node fields', + 'access toolbar', + ])); } /**