license import '@material/mwc-menu' ; import '@material/mwc-list/mwc-list-item' ; import { ListItem } from '@material/mwc-list/mwc-list-item' ; import { Menu } from '@material/mwc-menu' ; import { html } from 'lit-html' ; import { measureFixtureCreation } from '../../util/helpers' ; const renderCheck = async ( root ) => { const menu = root . firstElementChild as Menu ; const lastItem = menu . lastElementChild as ListItem ; await lastItem . updateComplete ; await menu . updateComplete ; } ; const afterRender = async ( root ) => { const menu = root . firstElementChild as Menu ; const anchor = root . lastElementChild as HTMLElement ; menu . anchor = anchor ; } ; measureFixtureCreation ( html `
  <mwc-menu>
    <mwc-list-item selected value="a">Apple</mwc-list-item>
    <mwc-list-item value="b">Banana</mwc-list-item>
    <mwc-list-item value="c">Cucumber</mwc-list-item>
  </mwc-menu>
  <div id="anchor"></div>
` , { renderCheck , afterRender } ) ;