提取认证页共享自适应骨架
This commit is contained in:
@@ -85,12 +85,12 @@ const run = async () => {
|
||||
await send('Page.reload')
|
||||
await waitForFreshDocument(send, previousTimeOrigin)
|
||||
await waitFor(send, "document.querySelectorAll('.login-tab').length === 2", `A01 did not render at ${size.width}x${size.height}`)
|
||||
await waitFor(send, "document.querySelector('.auth-header__image img')?.naturalWidth === 824", `A01 header did not load at ${size.width}x${size.height}`)
|
||||
await waitFor(send, "document.querySelector('.auth-shell__header-image img')?.naturalWidth === 824", `A01 header did not load at ${size.width}x${size.height}`)
|
||||
const metrics = await valueOf(send, `(() => {
|
||||
const root = document.querySelector('.auth-page')
|
||||
const header = document.querySelector('.auth-header')
|
||||
const headerImage = document.querySelector('.auth-header__image img')
|
||||
const paper = document.querySelector('.auth-paper')
|
||||
const header = document.querySelector('.auth-shell__header')
|
||||
const headerImage = document.querySelector('.auth-shell__header-image img')
|
||||
const paper = document.querySelector('.auth-shell__paper')
|
||||
const content = document.querySelector('.login-content')
|
||||
const headerRect = header?.getBoundingClientRect()
|
||||
const paperRect = paper?.getBoundingClientRect()
|
||||
|
||||
Reference in New Issue
Block a user