fix(ui): reconcile shared accessibility and read recovery
This commit is contained in:
@@ -24,6 +24,8 @@ test.each([
|
||||
const onClose = jest.fn();
|
||||
render(<I18nProvider><QuickCommandDialog open onClose={onClose} onNavigate={onNavigate} onOpenAddJob={jest.fn()} /></I18nProvider>);
|
||||
expect(screen.getByRole("dialog", { name: "Quick Search" })).toBeVisible();
|
||||
const labelIds = screen.getByRole("dialog", { name: "Quick Search" }).getAttribute("aria-labelledby");
|
||||
expect(!labelIds || labelIds.split(/\s+/).every(id => document.getElementById(id))).toBe(true);
|
||||
fireEvent.change(screen.getByRole("textbox", { name: "Quick Search" }), { target: { value: "Nordlys" } });
|
||||
fireEvent.click(await screen.findByText(label, { exact: true }));
|
||||
expect(onNavigate).toHaveBeenCalledWith(destination);
|
||||
|
||||
Reference in New Issue
Block a user