feat(next,ui): improves loading states (#6434)
This commit is contained in:
@@ -119,22 +119,18 @@ describe('auth', () => {
|
||||
await page.locator('#change-password').click()
|
||||
await page.locator('#field-password').fill('password')
|
||||
await page.locator('#field-confirm-password').fill('password')
|
||||
|
||||
await saveDocAndAssert(page)
|
||||
|
||||
await expect(page.locator('#field-email')).toHaveValue(emailBeforeSave)
|
||||
})
|
||||
|
||||
test('should have up-to-date user in `useAuth` hook', async () => {
|
||||
await page.goto(url.account)
|
||||
|
||||
await page.waitForURL(url.account)
|
||||
await expect(page.locator('#users-api-result')).toHaveText('Hello, world!')
|
||||
await expect(page.locator('#use-auth-result')).toHaveText('Hello, world!')
|
||||
|
||||
const field = page.locator('#field-custom')
|
||||
await field.fill('Goodbye, world!')
|
||||
await saveDocAndAssert(page)
|
||||
|
||||
await expect(page.locator('#users-api-result')).toHaveText('Goodbye, world!')
|
||||
await expect(page.locator('#use-auth-result')).toHaveText('Goodbye, world!')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user