- Add `ConnectivityIssue.vue` component for displaying server connection issues. - Implement polling logic with retry intervals to check server health. - Update i18n with new connectivity issue messages. - Add unit tests to cover connectivity failure and recovery scenarios. - Update test suite for breadth of coverage, including router contract and timer cleanup.
16 lines
692 B
JavaScript
16 lines
692 B
JavaScript
import { readFileSync } from "node:fs";
|
|
import { join } from "node:path";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
const root = process.cwd();
|
|
const routerSource = readFileSync(join(root, "src/router.js"), "utf8").replace(/\r\n/g, "\n");
|
|
|
|
describe("connectivity route contract", () => {
|
|
it("renders the connectivity page outside the default viewport wrapper", () => {
|
|
expect(routerSource).toContain("name: 'connectivity-issue'");
|
|
expect(routerSource).toContain("path: '/connectivity-issue'");
|
|
expect(routerSource).toContain("component: ConnectivityIssue");
|
|
expect(routerSource).toContain("meta: { template: 'clear-main', titleKey: 'connectivity.title' }");
|
|
});
|
|
});
|