chore: use snapotter.com as placeholder URL for html-to-image tool

This commit is contained in:
SnapOtter
2026-06-06 21:45:39 +08:00
parent 5bcc357725
commit 8512c518b2
23 changed files with 25 additions and 25 deletions
+3 -3
View File
@@ -14,14 +14,14 @@ test.describe("HTML to Image", () => {
test("enables capture button when URL is entered", async ({ page }) => {
await page.goto("/html-to-image");
await page.locator("input[type='url']").fill("https://example.com");
await page.locator("input[type='url']").fill("https://snapotter.com");
const button = page.locator("button[type='submit']");
await expect(button).toBeEnabled();
});
test("captures a webpage and shows the result", async ({ page }) => {
await page.goto("/html-to-image");
await page.locator("input[type='url']").fill("https://example.com");
await page.locator("input[type='url']").fill("https://snapotter.com");
await page.locator("button[type='submit']").click();
const resultImg = page.locator("img[alt='Captured screenshot']");
@@ -30,7 +30,7 @@ test.describe("HTML to Image", () => {
test("shows download button after capture", async ({ page }) => {
await page.goto("/html-to-image");
await page.locator("input[type='url']").fill("https://example.com");
await page.locator("input[type='url']").fill("https://snapotter.com");
await page.locator("button[type='submit']").click();
const downloadBtn = page.getByRole("button", { name: /download/i });