test(auth): stabilize registration layout screenshot

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
XiaoSeS 2026-09-24 11:56:06 +08:00
parent 3000375515
commit f9e9496053

View file

@ -188,6 +188,7 @@ test.describe('Auth Entry', () => {
expect(dimensions.scrollHeight).toBeLessThanOrEqual(dimensions.innerHeight + 2)
await page.goto('/register')
await page.addStyleTag({ content: '*, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }' })
const registerButton = page.getByRole('button', { name: 'Register & Login' })
await expect(registerButton).toBeVisible()
const registerButtonBox = await registerButton.boundingBox()