finally reached the summit of the cypress mountain

This commit is contained in:
Martin McKeaveney 2020-10-28 09:50:05 +00:00
parent d444a2447c
commit 35db8ca7e0
4 changed files with 12 additions and 7 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -22,8 +22,10 @@ context("Create a Table", () => {
})
it("updates a column on the table", () => {
cy.contains("name").click()
cy.get(".ri-pencil-line").click()
cy.contains("header", "name")
.trigger("mouseover")
.find(".ri-pencil-line")
.click({ force: true })
cy.get(".actions input")
.first()
.type("updated")
@ -48,11 +50,13 @@ context("Create a Table", () => {
})
it("deletes a column", () => {
cy.contains("name").click()
cy.get(".ri-pencil-line").click()
cy.contains("Delete Column").click()
cy
.contains("header", "name")
.trigger("mouseover")
.find(".ri-pencil-line").click({ force: true })
cy.contains("Delete").click()
cy.wait(50)
cy.get(".buttons").contains("Delete Column").click()
cy.get(".buttons").contains("Delete").click()
cy.contains("nameupdated").should("not.exist")
})

View File

@ -63,6 +63,7 @@ context("Create a View", () => {
.eq(1)
.select("age")
cy.contains("Save").click()
cy.get(".ag-center-cols-viewport").scrollTo("100%")
cy.get("[data-cy=table-header]").then($headers => {
expect($headers).to.have.length(7)
const headers = Array.from($headers).map(header => header.textContent.trim())

View File

@ -34,7 +34,7 @@
modal.show()
}
function setSort(column) {
function setSort() {
sortDirection = column.getSort()
}