mirror of
https://github.com/getredash/redash.git
synced 2025-12-21 18:35:48 -05:00
13 lines
439 B
JavaScript
13 lines
439 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));
|
|
}
|