CFE-18 fix test and add desc testing
This commit is contained in:
@@ -6,7 +6,8 @@ describe("Topics Component From call history", () => {
|
||||
describe("Rendering", () => {
|
||||
const historyItem = {
|
||||
category_name: "test category",
|
||||
subcategory_name: "test sub category"
|
||||
subcategory_name: "test sub category",
|
||||
description: "test desc"
|
||||
}
|
||||
it("operator name rendered", () => {
|
||||
render(<MockAppWithProviders><Topics historyItem={historyItem}/></MockAppWithProviders>);
|
||||
@@ -18,5 +19,10 @@ describe("Topics Component From call history", () => {
|
||||
const operatorAnswerDate = screen.queryByText("test sub category");
|
||||
expect(operatorAnswerDate).toBeInTheDocument();
|
||||
});
|
||||
it("operator description rendered", () => {
|
||||
render(<MockAppWithProviders><Topics historyItem={historyItem}/></MockAppWithProviders>);
|
||||
const operatorAnswerDate = screen.queryByText("test desc");
|
||||
expect(operatorAnswerDate).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user