Skip to content

Commit 96129fa

Browse files
committed
enh(Cypress): rename tables share test description
Signed-off-by: Cleopatra Enjeck M. <patrathewhiz@gmail.com>
1 parent b1e3888 commit 96129fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cypress/e2e/tables-share.cy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let localUser
66
let localUser2
77
let tableTitle = 'Shared todo'
88

9-
describe('Manage a table', () => {
9+
describe('Share a table', () => {
1010

1111
before(function() {
1212
cy.createRandomUser().then(user => {
@@ -30,6 +30,7 @@ describe('Manage a table', () => {
3030
cy.get('[data-cy="customTableAction"] button').click()
3131
cy.get('[data-cy="dataTableShareBtn"]').click()
3232
cy.get('[data-cy="shareFormSelect"] input').type(localUser2.userId)
33+
cy.wait(1000)
3334
cy.get(`.vs__dropdown-menu [user="${localUser2.userId}"]`).click()
3435
cy.wait(1000)
3536
cy.get('[data-cy="sharedWithList"]').contains(localUser2.userId).should('exist')

src/modules/main/sections/DataTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
</NcActionButton>
124124
<NcActionButton v-if="canReadData(table)" :close-after-click="true"
125125
icon="icon-download"
126-
data-cy="dataTableDownloadCSVBtn" @click="$emit('download-csv')">
126+
data-cy="dataTableExportBtn" @click="$emit('download-csv')">
127127
{{ t('tables', 'Export as CSV') }}
128128
</NcActionButton>
129129
<NcActionButton v-if="canShareElement(table)"

0 commit comments

Comments
 (0)