Skip to content

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!

test: include phone formatting toolbar in focus cycle

Amruth Pillai6aaedaf5ff73
diff --git a/tests/e2e/specs/section-editing.spec.ts b/tests/e2e/specs/section-editing.spec.ts
index 0d2386e85..c214920a9 100644
--- a/tests/e2e/specs/section-editing.spec.ts
+++ b/tests/e2e/specs/section-editing.spec.ts
@@ -71,6 +71,13 @@ test("contains phone entry focus and restores it without changing content", asyn
const addRole = dialog.getByRole("button", { name: "Add role", exact: true });
await description.focus();
await description.press("Tab");
+ const bold = dialog.getByRole("toolbar", { name: "Formatting" }).getByRole("button", { name: "Bold", exact: true });
+ await expect(bold).toBeFocused();
+ await bold.press("Shift+Tab");
+ await expect(description).toBeFocused();
+ await description.press("Tab");
+ await expect(bold).toBeFocused();
+ await bold.press("Tab");
await expect(addRole).toBeFocused();
await addRole.press("Tab");
await expect(back).toBeFocused();