Skip to content
Merged
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
27 changes: 27 additions & 0 deletions e2e/smoke.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { test, expect } from "@playwright/test";

test.describe("Smoke Tests", () => {
test("landing page should load successfully", async ({ page }) => {
await page.goto("/");
// Check if header title "VeriTix" is visible
await expect(page.getByLabel("VeriTix home")).toBeVisible();
// Check if the hero search bar inputs are present
await expect(page.getByPlaceholder("Search events, artists...")).toBeVisible();
});

test("login page should load successfully", async ({ page }) => {
await page.goto("/login");
// Check if "Welcome Back" header is visible
await expect(page.getByRole("heading", { name: "Welcome Back" })).toBeVisible();
// Check if email input is present
await expect(page.getByLabel("Email")).toBeVisible();
});

test("event discovery page should load successfully", async ({ page }) => {
await page.goto("/events");
// Check if the search inputs are present
await expect(page.getByPlaceholder("Search events, artists, or venues")).toBeVisible();
await expect(page.getByPlaceholder("Location")).toBeVisible();
await expect(page.getByPlaceholder("Date")).toBeVisible();
});
});
104 changes: 92 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"zod": "^4.3.5"
},
"devDependencies": {
"@playwright/test": "^1.60.0",
"@tailwindcss/postcss": "^4.1.18",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
Expand Down
Loading
Loading