chore: fix incorrect logic in auth test
This commit is contained in:
@@ -109,11 +109,13 @@ describe('auth', () => {
|
|||||||
.poll(async () => await apiKeyLocator.inputValue(), { timeout: POLL_TOPASS_TIMEOUT })
|
.poll(async () => await apiKeyLocator.inputValue(), { timeout: POLL_TOPASS_TIMEOUT })
|
||||||
.toBeDefined()
|
.toBeDefined()
|
||||||
|
|
||||||
|
const apiKey = await apiKeyLocator.inputValue()
|
||||||
|
|
||||||
await saveDocAndAssert(page)
|
await saveDocAndAssert(page)
|
||||||
|
|
||||||
await expect(async () => {
|
await expect(async () => {
|
||||||
const apiKey = await apiKeyLocator.inputValue()
|
const apiKeyAfterSave = await apiKeyLocator.inputValue()
|
||||||
expect(await page.locator('#apiKey').inputValue()).toStrictEqual(apiKey)
|
expect(apiKey).toStrictEqual(apiKeyAfterSave)
|
||||||
}).toPass({
|
}).toPass({
|
||||||
timeout: POLL_TOPASS_TIMEOUT,
|
timeout: POLL_TOPASS_TIMEOUT,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user