Skip to content

Commit

Permalink
fix: Editor and cmd-click snippet playwright-tests (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshgrover23 authored Jan 20, 2025
1 parent 5403c87 commit 690922e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playwright-tests/cmd-click.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { test, expect } from "@playwright/test"
test("Editor handles imports with underlining and cmd+click", async ({
page,
}) => {
await page.goto("http://127.0.0.1:5177/editor?snippet_id=snippet_5")
await page.goto("http://127.0.0.1:5177/editor?snippet_id=snippet_3")

await page.waitForLoadState("networkidle")

Expand Down
2 changes: 1 addition & 1 deletion playwright-tests/editor-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test("Editor loads snippet correctly", async ({ page }) => {
await page.waitForLoadState("networkidle")

// Check for specific text that should be present
await expect(page.getByText("SquareWaveModule")).toBeVisible()
await expect(page.getByText("A555Timer", { exact: true })).toBeVisible()

// Take a snapshot
await expect(page).toHaveScreenshot("editor-with-snippet.png")
Expand Down
Binary file modified playwright-tests/snapshots/cmd-click.spec.ts-underlined-imports.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 690922e

Please sign in to comment.