test(ux): add frontend quality gates
Deploy Canina / deploy (push) Successful in 2m46s

This commit is contained in:
devops committed 2026-10-16 20:31:32 +00:00
1 parent 9a9ab149ed
commit 5380bb66bb
3 files changed
+9 -5

No files matched your search

+3 -3
View File
@@ -16,8 +16,8 @@ vi.mock("next/navigation", () => ({ useRouter: () => ({ push: vi.fn() }) }));
describe("/cart route", () => {
it("renders the cart experience and provides journey actions", () => {
render(<CartPage />);
expect(screen.getByRole("region", { name: "سبد خرید" })).toBeInTheDocument();
expect(screen.getByRole("button", { name: "تکمیل سفارش" })).toBeInTheDocument();
expect(screen.getByRole("button", { name: "مشاهده محصولات" })).toBeInTheDocument();
expect(screen.getByRole("region", { name: "سبد خرید" })).toBeTruthy();
expect(screen.getByRole("button", { name: "تکمیل سفارش" })).toBeTruthy();
expect(screen.getByRole("button", { name: "مشاهده محصولات" })).toBeTruthy();
});
});
+1 -1
View File
@@ -11,6 +11,6 @@ vi.mock("next/navigation", () => ({ useRouter: () => ({ push: vi.fn() }) }));
describe("/login route", () => {
it("renders the authentication experience instead of a missing-page route", () => {
render(<LoginPage />);
expect(screen.getByRole("dialog")).toBeInTheDocument();
expect(screen.getByRole("dialog")).toBeTruthy();
});
});