mirror of
https://github.com/getredash/redash.git
synced 2026-03-21 16:00:09 -04:00
11 lines
435 B
JavaScript
11 lines
435 B
JavaScript
export function expectTableToHaveLength(length) {
|
|
cy.getByTestId("TableVisualization").find("tbody tr").should("have.length", length);
|
|
}
|
|
|
|
export function expectFirstColumnToHaveMembers(values) {
|
|
cy.getByTestId("TableVisualization")
|
|
.find("tbody tr td:first-child")
|
|
.then(($cell) => Cypress.$.map($cell, (item) => Cypress.$(item).text()))
|
|
.then((firstColumnCells) => expect(firstColumnCells).to.have.members(values));
|
|
}
|