diff --git a/src/features/flights-map/components/FlightsMapFilter.test.tsx b/src/features/flights-map/components/FlightsMapFilter.test.tsx index 784fc3eb..0fc955d3 100644 --- a/src/features/flights-map/components/FlightsMapFilter.test.tsx +++ b/src/features/flights-map/components/FlightsMapFilter.test.tsx @@ -24,6 +24,9 @@ vi.mock("@/ui/city-autocomplete/index.js", () => ({ placeholder={props["placeholder"] as string} /> ), + SwapCityButton: (props: { onClick: () => void; testId?: string }) => ( + + ariaLabel={t("SHARED.CITY_CHANGE")} + testId="fm-exchange-btn" + /> ({ defaultValue={(props["value"] as string) ?? ""} /> ), + SwapCityButton: (props: { onClick: () => void; testId?: string }) => ( + - + ({ defaultValue={(props["value"] as string) ?? ""} /> ), + SwapCityButton: (props: { onClick: () => void; testId?: string }) => ( + - + ({ defaultValue={(props["value"] as string) ?? ""} /> ), + SwapCityButton: (props: { onClick: () => void; testId?: string }) => ( + + + ); +} diff --git a/src/ui/city-autocomplete/index.ts b/src/ui/city-autocomplete/index.ts index 378c00ec..c57bea84 100644 --- a/src/ui/city-autocomplete/index.ts +++ b/src/ui/city-autocomplete/index.ts @@ -2,5 +2,7 @@ export { CityAutocomplete } from "./CityAutocomplete.js"; export type { CityAutocompleteProps } from "./CityAutocomplete.js"; export { CityPickerPopup } from "./CityPickerPopup.js"; export type { CityPickerPopupProps } from "./CityPickerPopup.js"; +export { SwapCityButton } from "./SwapCityButton.js"; +export type { SwapCityButtonProps } from "./SwapCityButton.js"; export { buildCountryCityRows } from "./buildCountryCityRows.js"; export type { ICountryCityRow } from "./buildCountryCityRows.js"; diff --git a/tests/integration/online-board/start-page.test.tsx b/tests/integration/online-board/start-page.test.tsx index 709e9990..aee5b8d9 100644 --- a/tests/integration/online-board/start-page.test.tsx +++ b/tests/integration/online-board/start-page.test.tsx @@ -56,6 +56,9 @@ vi.mock("@/ui/city-autocomplete/index.js", () => ({ placeholder={props["placeholder"] as string} /> ), + SwapCityButton: (props: { onClick: () => void; testId?: string }) => ( +