silverwolf-x's picture
download
raw
636 Bytes
import type { Playwright } from '../../../lib/next-webdriver'
import { waitForDevToolsIndicator } from 'next-test-utils'
export async function getDevIndicatorPosition(browser: Playwright) {
// assert before eval() to prevent race condition
await waitForDevToolsIndicator(browser)
const style = await browser.eval(() => {
return (
[].slice
.call(document.querySelectorAll('nextjs-portal'))
.find((p) => p.shadowRoot.querySelector('[data-nextjs-toast]'))
// portal
?.shadowRoot?.querySelector('[data-nextjs-toast]')
?.getAttribute('style') || ''
)
})
return style || ''
}

Xet Storage Details

Size:
636 Bytes
·
Xet hash:
317c06bd63e008746330211e5600ea5e34f210891d0b2bee38ea1c93c1e73922

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.