From df53e5ed62f09ca73d2a443be5e67ecbd3a237ef Mon Sep 17 00:00:00 2001 From: James Anthony Williams <81305008+JAWilliamsONS@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:00:30 +0000 Subject: [PATCH] refactor: change test desciprtions --- src/features/step_definitions/CATI_Dashboard_Link.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/step_definitions/CATI_Dashboard_Link.test.tsx b/src/features/step_definitions/CATI_Dashboard_Link.test.tsx index e936b35..df429bd 100644 --- a/src/features/step_definitions/CATI_Dashboard_Link.test.tsx +++ b/src/features/step_definitions/CATI_Dashboard_Link.test.tsx @@ -1,6 +1,6 @@ import React from "react"; import { defineFeature, loadFeature } from "jest-cucumber"; -import {cleanup, fireEvent, render, screen, waitFor} from "@testing-library/react"; +import {cleanup, render, screen, waitFor} from "@testing-library/react"; import { act } from "react-dom/test-utils"; import { createMemoryHistory } from "history"; import { Router } from "react-router-dom"; @@ -58,7 +58,7 @@ defineFeature(feature, test => { when("the link to the CATI dashboard is present", async () => { await waitFor(() => { - expect(screen.getByText(/Link to CATI dashboard/i)) + expect(screen.getByText(/Link to CATI dashboard/i)); }); });