This commit is contained in:
1 parent
1aad481930
commit
6dbee69601
2 files changed
+7
No files matched your search
@@ -766,6 +766,7 @@ export default function ArchivePage({
|
||||
<div className="flex items-center gap-2 bg-white border border-medical-gray-200 rounded-2xl px-3 py-2 text-xs font-bold shadow-xs">
|
||||
<span className="text-medical-gray-400 whitespace-nowrap">مرتبسازی:</span>
|
||||
<select
|
||||
aria-label="مرتبسازی محصولات"
|
||||
value={`${sortBy}:${sortOrder}`}
|
||||
onChange={(e) => {
|
||||
const [b, o] = e.target.value.split(':');
|
||||
|
||||
@@ -158,6 +158,12 @@ describe("ArchivePage Component", () => {
|
||||
expect(screen.getAllByLabelText("جستجوی علائم").length).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
it("gives the catalog sort control an accessible name", () => {
|
||||
render(<ArchivePage initialProducts={mockProducts as any} />);
|
||||
|
||||
expect(screen.getByLabelText("مرتبسازی محصولات")).toBeTruthy();
|
||||
});
|
||||
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
|
||||
Reference in new issue
Block a user