From 1e41461a9068a9bf6bff69e3a75f3403523be78f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 28 Oct 2020 16:05:19 +0000 Subject: [PATCH] Rename deletion modal titles and fixing cypress tests --- packages/builder/cypress/integration/createTable.spec.js | 3 ++- .../automation/AutomationPanel/EditAutomationPopover.svelte | 2 +- .../backend/DataTable/buttons/DeleteRowsButton.svelte | 2 +- .../backend/DataTable/modals/CreateEditColumn.svelte | 2 +- .../src/components/backend/DataTable/modals/DeleteRow.svelte | 2 +- .../src/components/backend/DataTable/modals/EditRow.svelte | 2 +- .../backend/TableNavigator/popovers/EditTablePopover.svelte | 2 +- .../backend/TableNavigator/popovers/EditViewPopover.svelte | 2 +- .../src/components/userInterface/ComponentDropdownMenu.svelte | 2 +- .../src/components/userInterface/ScreenDropdownMenu.svelte | 2 +- 10 files changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/builder/cypress/integration/createTable.spec.js b/packages/builder/cypress/integration/createTable.spec.js index 266e31ba58..fdad39b956 100644 --- a/packages/builder/cypress/integration/createTable.spec.js +++ b/packages/builder/cypress/integration/createTable.spec.js @@ -34,7 +34,8 @@ context("Create a Table", () => { }) it("edits a row", () => { - cy.get("button").contains("Edit").click() + cy.contains("button", "Edit").click({ force: true }) + cy.wait(1000) cy.get(".modal input").type("Updated") cy.contains("Save").click() cy.contains("RoverUpdated").should("have.text", "RoverUpdated") diff --git a/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte b/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte index 7868d8d2c6..a3ec5b2ae5 100644 --- a/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/EditAutomationPopover.svelte @@ -43,7 +43,7 @@ bind:this={confirmDeleteDialog} okText="Delete Automation" onOk={deleteAutomation} - title="Confirm Delete"> + title="Confirm Deletion"> Are you sure you wish to delete the automation {automation.name}? This action cannot be undone. diff --git a/packages/builder/src/components/backend/DataTable/buttons/DeleteRowsButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/DeleteRowsButton.svelte index 5690e4f76d..f55969087f 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/DeleteRowsButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/DeleteRowsButton.svelte @@ -25,7 +25,7 @@ bind:this={modal} okText="Delete" onOk={confirmDeletion} - title="Confirm Delete"> + title="Confirm Deletion"> Are you sure you want to delete {selectedRows.length} row{selectedRows.length > 1 ? 's' : ''}? diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index c831ef8193..866e574bca 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -170,7 +170,7 @@ okText="Delete Column" onOk={deleteColumn} onCancel={hideDeleteDialog} - title="Confirm Delete" /> + title="Confirm Deletion" />