some fixes and refactors
This commit is contained in:
parent
ead8a566d0
commit
75cfc6c928
16 changed files with 381 additions and 425 deletions
|
|
@ -100,7 +100,10 @@ test.describe("Counter - Authenticated", () => {
|
|||
|
||||
// Second user increments
|
||||
await page2.click("text=Increment");
|
||||
await expect(page2.locator("h1")).toHaveText(String(page2InitialValue + 1));
|
||||
// Wait for counter to update - use >= because parallel tests may also increment
|
||||
await expect(page2.locator("h1")).not.toHaveText(String(page2InitialValue));
|
||||
const page2AfterIncrement = Number(await page2.locator("h1").textContent());
|
||||
expect(page2AfterIncrement).toBeGreaterThanOrEqual(page2InitialValue + 1);
|
||||
|
||||
// First user reloads and sees the increment (value should be >= what page2 has)
|
||||
await page.reload();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue