forked from getredash/redash
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Adding ability to fix table columns in place (getredash#7019)" (
- Loading branch information
Showing
9 changed files
with
34 additions
and
183 deletions.
There are no files selected for viewing
33 changes: 0 additions & 33 deletions
33
client/cypress/integration/visualizations/table/.mocks/wide-dataset.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
export function expectTableToHaveLength(length) { | ||
cy.getByTestId("TableVisualization") | ||
.find("tbody tr.ant-table-row") | ||
.should("have.length", length); | ||
cy.getByTestId("TableVisualization").find("tbody tr").should("have.length", length); | ||
} | ||
|
||
export function expectFirstColumnToHaveMembers(values) { | ||
cy.getByTestId("TableVisualization") | ||
.find("tbody tr.ant-table-row td:first-child") | ||
.then($cell => Cypress.$.map($cell, item => Cypress.$(item).text())) | ||
.then(firstColumnCells => expect(firstColumnCells).to.have.members(values)); | ||
.find("tbody tr td:first-child") | ||
.then(($cell) => Cypress.$.map($cell, (item) => Cypress.$(item).text())) | ||
.then((firstColumnCells) => expect(firstColumnCells).to.have.members(values)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters