function assertMenu(items) {
    const menu = testElement.$$('cr-action-menu');
    assertTrue(!!menu);
    const menuItems = menu.querySelectorAll('button:not([hidden])');
    assertEquals(items.length, menuItems.length);
    for (let i = 0; i < items.length; i++)
      assertEquals(items[i], menuItems[i].textContent.trim());
  }
/**
   * Asserts the menu looks as expected.
   * @param {Array<string>} items The items expected to show in the menu.
   */
Asserts the menu looks as expected.
@param {Array} items The items expected to show in the menu.
Asserts the menu looks as expected . @param { Array } items The items expected to show in the menu .
function assertMenu(items) {
    const menu = testElement.$$('cr-action-menu');
    assertTrue(!!menu);
    const menuItems = menu.querySelectorAll('button:not([hidden])');
    assertEquals(items.length, menuItems.length);
    for (let i = 0; i < items.length; i++)
      assertEquals(items[i], menuItems[i].textContent.trim());
  }
function assertMenu ( items ) { const menu = testElement . $$ ( 'cr-action-menu' ) ; assertTrue ( ! ! menu ) ; const menuItems = menu . querySelectorAll ( 'button:not([hidden])' ) ; assertEquals ( items . length , menuItems . length ) ; for ( let i = 0 ; i < items . length ; i ++ ) assertEquals ( items [ i ] , menuItems [ i ] . textContent . trim ( ) ) ; }
Asserts the menu looks as expected.
Asserts the menu looks as expected .