PromucFlow_constructor/app/client/src/widgets/TableWidget/widget/propertyConfig.test.ts
Keyur Paralkar 9fc0a038ec
fix: update tooltip record count prop table (#9297)
* docs: changed the tooltip text for total record count for table widget

* test: added unit test for testing tooltip text table widget

* refactor: added Tooltip message in the message constants
2021-11-26 10:44:00 +05:30

18 lines
701 B
TypeScript

import TableWidget from "./index";
describe("unit test case for property config pane", () => {
it("case: check tooltip text for total record count property exists", () => {
const generalSection: any = TableWidget.getPropertyPaneConfig().filter(
(section: any) => section.sectionName === "General",
);
const totalRecordsCount = generalSection[0].children.filter(
(child: any) => child.propertyName === "totalRecordsCount",
)[0];
expect(totalRecordsCount.helpText).toEqual(
"It stores the total no. of rows in the table. Helps in calculating the no. of pages that further allows to enable or disable the next/previous control in pagination.",
);
});
});