Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

playwright config and fix failing test

Khuram Niaz41ebc49626da
diff --git a/e2e/add-job.spec.ts b/e2e/add-job.spec.ts
index 4b4684a..ae7bfd3 100644
--- a/e2e/add-job.spec.ts
+++ b/e2e/add-job.spec.ts
@@ -86,7 +86,7 @@ async function createNewJob(page: Page, jobText: string) {
}
async function deleteJob(page: Page, jobText: string) {
- await page.goto("localhost:3000/dashboard/myjobs");
+ await page.goto("/dashboard/myjobs");
const cells = page.getByText(new RegExp(jobText, "i"));
await expect(cells.first()).toBeVisible();
await page
diff --git a/e2e/profile.spec.ts b/e2e/profile.spec.ts
index 2821872..6fe65d8 100644
--- a/e2e/profile.spec.ts
+++ b/e2e/profile.spec.ts
@@ -147,7 +147,7 @@ test.describe("Profile page", () => {
test("should add resume work experience after clicking Edit Experience section", async ({
page,
}) => {
- const resumeTitle = "Test Resume 6";
+ const resumeTitle = `Test Resume 6 ${Date.now()}`;
const jobText = "Software Developer";
await page.getByRole("link", { name: "Profile" }).click();
await createResume(page, resumeTitle);
diff --git a/playwright.config.ts b/playwright.config.ts
index 002562c..1531870 100644
--- a/playwright.config.ts
+++ b/playwright.config.ts
@@ -70,9 +70,10 @@ export default defineConfig({
],
/* Run your local dev server before starting the tests */
- // webServer: {
- // command: 'npm run start',
- // url: 'http://127.0.0.1:3000',
- // reuseExistingServer: !process.env.CI,
- // },
+ webServer: {
+ command: "npm run dev",
+ url: "http://localhost:3000",
+ reuseExistingServer: !process.env.CI,
+ timeout: 120 * 1000,
+ },
});