diff --git a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php index 8e4e2a62787b8c3d695b450a7b48c952c2a9c301..bbebee16c31a7d60571bdb5334bedc3cc22caec4 100644 --- a/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php +++ b/core/modules/menu_ui/tests/src/Functional/MenuUiNodeTest.php @@ -43,14 +43,6 @@ class MenuUiNodeTest extends BrowserTestBase { 'content_translation', ]; - /** - * {@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} */ @@ -439,7 +431,10 @@ public function testMenuNodeWithGrantsFormWidget() { * @see menu_ui_get_menu_link_defaults() */ public function testMainMenuIsPrioritized(): void { - $this->drupalLogin($this->rootUser); + $this->drupalLogin($this->drupalCreateUser([ + 'administer menu', + 'edit any page content', + ])); $menu_name = $this->randomMachineName(); $mainLinkTitle = $this->randomMachineName(); $nonMainLinkTitle = $this->randomMachineName();