A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
test: use pointer events for blocked navigation
Amruth Pillai858c8ae88acf
diff --git a/tests/e2e/specs/builder-save-navigation.spec.ts b/tests/e2e/specs/builder-save-navigation.spec.tsindex dc490689e..26c393e09 100644--- a/tests/e2e/specs/builder-save-navigation.spec.ts+++ b/tests/e2e/specs/builder-save-navigation.spec.ts@@ -15,10 +15,11 @@ function waitSave(page: Page) {(response) => new URL(response.url()).pathname === "/api/rpc/resume/update" && response.ok(),);}-function clickDashboardWithoutNavigationWait(page: Page) {- return page- .getByRole("button", { name: "Go to resumes dashboard", exact: true })- .evaluate((element) => element.click());+async function clickDashboardWithoutNavigationWait(page: Page) {+ const dashboardButton = page.getByRole("button", { name: "Go to resumes dashboard", exact: true });+ const box = await dashboardButton.boundingBox();+ if (!box) throw new Error("Dashboard navigation button is not visible.");+ await page.mouse.click(box.x + box.width / 2, box.y + box.height / 2);}async function prepareNavigationTest(page: Page, testInfo: TestInfo) {