diff --git a/src/components/search/search.tsx b/src/components/search/search.tsx
index 0a6a6041..0135c24a 100644
--- a/src/components/search/search.tsx
+++ b/src/components/search/search.tsx
@@ -107,6 +107,7 @@ export default function Search({
index,
item,
})}
+ data-testid={`list-item-${index}`}
>
diff --git a/src/page-modules/departures/stop-place/index.tsx b/src/page-modules/departures/stop-place/index.tsx
index 5f8322b8..07feec8d 100644
--- a/src/page-modules/departures/stop-place/index.tsx
+++ b/src/page-modules/departures/stop-place/index.tsx
@@ -35,7 +35,9 @@ export type StopPlaceProps = {
};
export function StopPlace({ departures }: StopPlaceProps) {
const { t } = useTranslation();
- const { color: {interactive}} = useTheme();
+ const {
+ color: { interactive },
+ } = useTheme();
const router = useRouter();
const [isHoveringRefreshButton, setIsHoveringRefreshButton] = useState(false);
@@ -167,11 +169,12 @@ export function EstimatedCallList({ quay }: EstimatedCallListProps) {
))}
{departures.length > 0 ? (
<>
- {departures.map((departure) => (
+ {departures.map((departure, index) => (
))}
>
@@ -204,11 +207,13 @@ export function EstimatedCallList({ quay }: EstimatedCallListProps) {
type EstimatedCallItemProps = {
quayId: string;
departure: Departure;
+ testID?: string;
};
export function EstimatedCallItem({
quayId,
departure,
+ testID,
}: EstimatedCallItemProps) {
const { t } = useTranslation();
const lineName = formatDestinationDisplay(t, departure.destinationDisplay);
@@ -217,6 +222,7 @@ export function EstimatedCallItem({
{(departure.transportMode || departure.publicCode) && (