CFE-17 debug test of this feature

This commit is contained in:
2023-11-19 14:37:33 +03:30
parent da7b7852b0
commit eafade3eca

View File

@@ -5,8 +5,8 @@ import PreviousOperatorData from "../../PreviousOperatorData";
describe("PreviousOperatorData Component From call history", () => {
describe("Rendering", () => {
const historyItem = {
operator_name: "test name",
answer_date: "test date"
operator_full_name: "test name",
created_at: "2023-11-19T10:32:48.000000Z"
}
it("operator name rendered", () => {
render(<MockAppWithProviders><PreviousOperatorData historyItem={historyItem}/></MockAppWithProviders>);
@@ -15,7 +15,7 @@ describe("PreviousOperatorData Component From call history", () => {
});
it("operator answer date rendered", () => {
render(<MockAppWithProviders><PreviousOperatorData historyItem={historyItem}/></MockAppWithProviders>);
const operatorAnswerDate = screen.queryByText("test date");
const operatorAnswerDate = screen.queryByText("14:02:48 | 1402/08/28");
expect(operatorAnswerDate).toBeInTheDocument();
});
});