Skip to content

Commit

Permalink
Merge pull request mi6#3053 from mi6/enable-row-highlighting-visual-t…
Browse files Browse the repository at this point in the history
…ests

Enable row highlighting visual tests
  • Loading branch information
ad9242 authored Jan 20, 2025
2 parents 5ec6aff + 57ba643 commit 7d83b9b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
14 changes: 14 additions & 0 deletions packages/canary-docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,20 @@
"docs": "Emitted when the `globalRowHeight` or `variableRowHeight` properties change in the data table.",
"docsTags": []
},
{
"event": "icSelectedRowChange",
"detail": "object",
"bubbles": true,
"complexType": {
"original": "object",
"resolved": "object",
"references": {}
},
"cancelable": true,
"composed": true,
"docs": "Emitted when the selected row changes in the data table.",
"docsTags": []
},
{
"event": "icSortChange",
"detail": "IcSortEventDetail",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -4208,8 +4208,7 @@ describe("IcDataTable row selection", () => {
cy.task("generateReport");
});

// Test skipped due to issue creating snapshot image
it.skip("should highlight the selected row", () => {
it("should highlight the selected row", () => {
mount(<BasicDataTable />);

cy.checkHydrated(DATA_TABLE_SELECTOR);
Expand All @@ -4225,8 +4224,7 @@ describe("IcDataTable row selection", () => {
});
});

// Test skipped due to issue creating snapshot image
it.skip("should not highlight the selected row when the highlightSelectedRow prop is set to false", () => {
it("should not highlight the selected row when the highlightSelectedRow prop is set to false", () => {
mount(<BasicDataTable highlightSelectedRow={false} />);

cy.checkHydrated(DATA_TABLE_SELECTOR);
Expand Down

0 comments on commit 7d83b9b

Please sign in to comment.