-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: playwright-tests failing (#431)
* fix: playwright test * split view snippet test
- Loading branch information
1 parent
1119ab6
commit 70f19d0
Showing
7 changed files
with
42 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// files-dialog.spec.js | ||
import { test, expect } from "@playwright/test" | ||
|
||
test("files dialog", async ({ page }) => { | ||
// Wait for network requests during navigation | ||
await Promise.all([ | ||
page.waitForLoadState("networkidle"), | ||
page.goto("http://127.0.0.1:5177/testuser/my-test-board"), | ||
]) | ||
|
||
// Wait for run button and files tab to be visible | ||
await page.waitForSelector(".run-button", { state: "visible" }) | ||
const filesTab = await page.waitForSelector('span:has-text("Files")', { | ||
state: "visible", | ||
}) | ||
|
||
// Click and wait for any animations or state changes | ||
await filesTab.click() | ||
await page.waitForLoadState("networkidle") | ||
|
||
await expect(page).toHaveScreenshot(`view-snippet-files.png`) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+51.7 KB
playwright-tests/snapshots/files-dialog.spec.ts-view-snippet-files.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,5 @@ export default { | |
}, | ||
}, | ||
}, | ||
plugins: [require("tailwindcss-animate")], | ||
plugins: ["tailwindcss-animate"], | ||
} |