Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
env:
NODE_ENV: test

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions tests/blog-app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ test.describe("Blog Application", () => {
// Generate new token without reloading
await page.getByTestId("generate-token-button").click()

// Wait for token to potentially change
await page.waitForTimeout(500)
// Wait for the token text to actually change (server action + revalidate)
await expect(page.getByTestId("api-token")).not.toHaveText(firstToken!)
const secondToken = await page.getByTestId("api-token").textContent()

// Tokens should be different
Expand Down