diff --git a/.DS_Store b/.DS_Store index 363dbb1c4c..b16eb9ec68 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/packages/builder/cypress/integration/createTable.spec.js b/packages/builder/cypress/integration/createTable.spec.js index 2d6f131289..0715d61c0b 100644 --- a/packages/builder/cypress/integration/createTable.spec.js +++ b/packages/builder/cypress/integration/createTable.spec.js @@ -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") }) diff --git a/packages/builder/cypress/integration/createView.spec.js b/packages/builder/cypress/integration/createView.spec.js index 4b01fb43ed..ca0dd60f8b 100644 --- a/packages/builder/cypress/integration/createView.spec.js +++ b/packages/builder/cypress/integration/createView.spec.js @@ -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()) diff --git a/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte b/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte index 922f565a22..9588b34dd7 100644 --- a/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte +++ b/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte @@ -34,7 +34,7 @@ modal.show() } - function setSort(column) { + function setSort() { sortDirection = column.getSort() }