feat(ux): add mobile catalog filter edge affordance
Deploy Canina / deploy (push) Successful in 2m15s
Deploy Canina / deploy (push) Successful in 2m15s
This commit is contained in:
1 parent
87ad359e60
commit
8672d4bcac
3 files changed
+18
-1
No files matched your search
@@ -164,6 +164,14 @@ describe("ArchivePage Component", () => {
|
||||
expect(screen.getByLabelText("مرتبسازی محصولات")).toBeTruthy();
|
||||
});
|
||||
|
||||
it("exposes a scroll affordance for the mobile filter row", () => {
|
||||
render(<ArchivePage initialProducts={mockProducts as any} />);
|
||||
|
||||
const filterRow = screen.getByTestId("mobile-catalog-filters");
|
||||
expect(filterRow).toHaveAttribute("aria-label", "فیلترهای محصولات");
|
||||
expect(screen.getByTestId("mobile-catalog-filters-edge")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
|
||||
Reference in new issue
Block a user