17 lines
529 B
JavaScript
17 lines
529 B
JavaScript
import Picker from './picker.js'
|
|
import { waitForElementWithId, postRaf, waitForPickerInitialLoad } from './utils.js'
|
|
|
|
const picker = new Picker()
|
|
document.body.appendChild(picker)
|
|
|
|
await waitForPickerInitialLoad()
|
|
await postRaf()
|
|
const peopleTabButton = picker.shadowRoot.querySelector('[role="tab"][aria-label="People and body"]')
|
|
|
|
performance.mark('start-change-tab')
|
|
peopleTabButton.click()
|
|
|
|
await waitForElementWithId(picker.shadowRoot, 'emo-👋')
|
|
await postRaf()
|
|
performance.measure('benchmark-total', 'start-change-tab')
|