feat(frontend): simplify the candidate cabinet header
This commit is contained in:
1 parent
90ff71735a
commit
89932b8714
28 files changed
+1154
-179
No files matched your search
@@ -1086,9 +1086,10 @@ test("results keep the express run apart and stay private to the signed-in candi
|
||||
await otherContext.close();
|
||||
}
|
||||
|
||||
// After sign-out the SPA keeps its in-memory state. The app has no sign-out
|
||||
// control yet, so the session ends through the API; moving inside the app
|
||||
// must then show no stored data, and a fresh load must ask for sign-in.
|
||||
// After the session ends elsewhere the SPA keeps its in-memory state. The
|
||||
// session ends through the API here, not through the account menu, which
|
||||
// reloads the page; moving inside the app must then show no stored data, and
|
||||
// a fresh load must ask for sign-in.
|
||||
await navigateInApp(page, "/candidate/results");
|
||||
await expect(history.getByRole("listitem")).toHaveCount(1);
|
||||
await signOut(page);
|
||||
|
||||
@@ -386,7 +386,10 @@ test.describe("candidate questionnaire", () => {
|
||||
);
|
||||
|
||||
await registerVerifiedCandidate(page);
|
||||
await page.getByRole("link", { name: "Профиль" }).click();
|
||||
await page
|
||||
.getByRole("navigation", { name: "Разделы кабинета кандидата" })
|
||||
.getByRole("link", { name: "Профиль" })
|
||||
.click();
|
||||
await expect(page.getByRole("heading", { name: "Профиль" })).toBeVisible();
|
||||
await page.route("**/api/v1/me/questionnaire", async (route) => {
|
||||
if (route.request().method() === "GET") {
|
||||
|
||||
@@ -193,6 +193,8 @@ test.describe("candidate support cases and manual assessment", () => {
|
||||
}) => {
|
||||
await registerCandidate(page, "support-author");
|
||||
await page.goto("/candidate/assessment");
|
||||
// Support sits in the account menu of the header.
|
||||
await page.getByRole("button", { name: "Аккаунт" }).click();
|
||||
await expect(page.getByRole("link", { name: "Поддержка", exact: true })).toBeVisible();
|
||||
await page.getByRole("link", { name: "Поддержка", exact: true }).click();
|
||||
await expect(page).toHaveURL(/\/candidate\/support\/cases$/);
|
||||
|
||||
Reference in new issue
Block a user