Verified Commit 8b19bc6a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3439899 by SolimanHarkas, vensires: Fix Menu tests that rely on UID1's super user behavior

parent 6c1d6a5b
Loading
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -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();