feat(GRO-1794): booking funnel analytics events #24
@@ -28,11 +28,11 @@ describe("BookingErrorPage", () => {
|
|||||||
|
|
||||||
it("displays business contact phone", () => {
|
it("displays business contact phone", () => {
|
||||||
render(<BookingErrorPage />);
|
render(<BookingErrorPage />);
|
||||||
expect(screen.getByText(BUSINESS_CONTACT_INFO.phone)).toBeInTheDocument();
|
expect(screen.getByText(new RegExp(BUSINESS_CONTACT_INFO.phone.replace(/[()]/g, "\\$&")))).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("displays business contact email", () => {
|
it("displays business contact email", () => {
|
||||||
render(<BookingErrorPage />);
|
render(<BookingErrorPage />);
|
||||||
expect(screen.getByText(BUSINESS_CONTACT_INFO.email)).toBeInTheDocument();
|
expect(screen.getByText(new RegExp(BUSINESS_CONTACT_INFO.email))).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { describe, it, expect } from "vitest";
|
import { describe, it, expect, vi } from "vitest";
|
||||||
import { ANALYTICS_EVENTS, fireAnalyticsEvent } from "../lib/analytics";
|
import { ANALYTICS_EVENTS, fireAnalyticsEvent } from "../lib/analytics";
|
||||||
|
|
||||||
describe("analytics", () => {
|
describe("analytics", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user