Rename deletion modal titles and fixing cypress tests
This commit is contained in:
parent
1a8da28c09
commit
1e41461a90
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
<i>{automation.name}?</i>
|
||||
This action cannot be undone.
|
||||
|
|
|
@ -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' : ''}?
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
okText="Delete Column"
|
||||
onOk={deleteColumn}
|
||||
onCancel={hideDeleteDialog}
|
||||
title="Confirm Delete" />
|
||||
title="Confirm Deletion" />
|
||||
|
||||
<style>
|
||||
.actions {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
body={`Are you sure you wish to delete this row? Your data will be deleted and this action cannot be undone.`}
|
||||
okText="Delete Row"
|
||||
onOk={deleteRow}
|
||||
title="Confirm Delete" />
|
||||
title="Confirm Deletion" />
|
||||
|
||||
<style>
|
||||
.ri-delete-bin-line:hover {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<Button translucent small on:click={showModal}>Edit</Button>
|
||||
<Button data-cy="edit-row" translucent small on:click={showModal}>Edit</Button>
|
||||
<Modal bind:this={modal}>
|
||||
<CreateEditRowModal {row} />
|
||||
</Modal>
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
bind:this={confirmDeleteDialog}
|
||||
okText="Delete Table"
|
||||
onOk={deleteTable}
|
||||
title="Confirm Delete">
|
||||
title="Confirm Deletion">
|
||||
Are you sure you wish to delete the table
|
||||
<i>{table.name}?</i>
|
||||
The following will also be deleted:
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
body={`Are you sure you wish to delete the view '${view.name}'? Your data will be deleted and this action cannot be undone.`}
|
||||
okText="Delete View"
|
||||
onOk={deleteView}
|
||||
title="Confirm Delete" />
|
||||
title="Confirm Deletion" />
|
||||
|
||||
<style>
|
||||
div.icon {
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
</div>
|
||||
<ConfirmDialog
|
||||
bind:this={confirmDeleteDialog}
|
||||
title="Confirm Delete"
|
||||
title="Confirm Deletion"
|
||||
body={`Are you sure you wish to delete this '${lastPartOfName(component)}' component?`}
|
||||
okText="Delete Component"
|
||||
onOk={deleteComponent} />
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
</div>
|
||||
<ConfirmDialog
|
||||
bind:this={confirmDeleteDialog}
|
||||
title="Confirm Delete"
|
||||
title="Confirm Deletion"
|
||||
body={`Are you sure you wish to delete the screen '${screen.props._instanceName}' ?`}
|
||||
okText="Delete Screen"
|
||||
onOk={deleteScreen} />
|
||||
|
|
Loading…
Reference in New Issue