Update RerouteDialog.test.tsx resolve lint errors (#17352)

This commit is contained in:
Avishay Maor
2024-10-28 22:49:11 +05:30
committed by GitHub
parent dfc73ea307
commit 2efa593d2b
@@ -248,7 +248,7 @@ async function mockMessageFromOpenedTab({ type, data }: { type: string; data: an
return messageReceivedPromise;
}
function expectEventTypeInfoInCurrentRouting({
async function expectEventTypeInfoInCurrentRouting({
eventTypeText,
eventTypeHref,
}: {
@@ -257,10 +257,10 @@ function expectEventTypeInfoInCurrentRouting({
}) {
const eventTypeEl = screen.getByTestId("current-routing-status-event-type");
expect(eventTypeEl).toHaveTextContent(eventTypeText);
expect(eventTypeEl.querySelector("a")).toHaveAttribute("href", eventTypeHref);
await expect(eventTypeEl.querySelector("a")).toHaveAttribute("href", eventTypeHref);
}
function expectEventTypeInfoInReroutePreview({
async function expectEventTypeInfoInReroutePreview({
eventTypeText,
eventTypeHref,
}: {
@@ -269,7 +269,7 @@ function expectEventTypeInfoInReroutePreview({
}) {
const eventTypeEl = screen.getByTestId("reroute-preview-event-type");
expect(eventTypeEl).toHaveTextContent(eventTypeText);
expect(eventTypeEl.querySelector("a")).toHaveAttribute("href", eventTypeHref);
await expect(eventTypeEl.querySelector("a")).toHaveAttribute("href", eventTypeHref);
}
function expectOrganizerInfoInCurrentRouting({ organizerText }: { organizerText: string }) {