diff --git a/cypress/e2e/tables-sharing-link.cy.js b/cypress/e2e/tables-sharing-link.cy.js index d21848e062..e3365cb7d9 100644 --- a/cypress/e2e/tables-sharing-link.cy.js +++ b/cypress/e2e/tables-sharing-link.cy.js @@ -94,8 +94,8 @@ describe('Public link sharing', () => { cy.visit(`apps/tables/s/${shareToken}`) // Password Gate - cy.get('input[type="password"]#password').should('be.visible').type(password) - cy.get('input#password-submit').click() + cy.get('input[type="password"]').should('be.visible').type(password) + cy.get('button[type="submit"], input[type="submit"]').filter(':visible').first().click() cy.get('[data-cy="publicTableElement"]').should('be.visible') // Login again to delete share diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js index 26a4dd3b93..e87691fae3 100644 --- a/cypress/support/e2e.js +++ b/cypress/support/e2e.js @@ -21,5 +21,20 @@ import './commands.js' Cypress.on('uncaught:exception', (err) => { return !err.message.includes('ResizeObserver loop limit exceeded') && - !err.message.includes('ResizeObserver loop completed with undelivered notifications') + !err.message.includes('ResizeObserver loop completed with undelivered notifications') && + !err.message.includes("Cannot read properties of undefined (reading 'from')") && + !err.message.includes("Cannot read properties of undefined (reading 'createEditor')") +}) + +// Handle unsupported browser dialog that appears on page load +Cypress.Commands.overwrite('visit', (originalVisit, url, options) => { + return originalVisit(url, options).then(() => { + // Wait a moment for the dialog to appear if needed + cy.get('body', { timeout: 1000 }).then(($body) => { + const button = $body.find('button:contains("Continue with this unsupported browser")') + if (button.length > 0) { + cy.contains('button', 'Continue with this unsupported browser').click() + } + }) + }) }) \ No newline at end of file diff --git a/src/modules/navigation/partials/NavigationTableItem.vue b/src/modules/navigation/partials/NavigationTableItem.vue index 9d01cf4f93..c09498ee30 100644 --- a/src/modules/navigation/partials/NavigationTableItem.vue +++ b/src/modules/navigation/partials/NavigationTableItem.vue @@ -64,7 +64,7 @@ {{ t('tables', 'Export') }} @@ -151,6 +151,7 @@ import activityMixin from '../../../shared/mixins/activityMixin.js' import { getCurrentUser, getRequestToken } from '@nextcloud/auth' import Connection from 'vue-material-design-icons/Connection.vue' import Import from 'vue-material-design-icons/Import.vue' +import Export from 'vue-material-design-icons/Export.vue' import NavigationViewItem from './NavigationViewItem.vue' import PlaylistPlus from 'vue-material-design-icons/PlaylistPlus.vue' import IconRename from 'vue-material-design-icons/RenameOutline.vue' @@ -168,6 +169,7 @@ export default { ArchiveArrowDown, ArchiveArrowUpOutline, Import, + Export, NavigationViewItem, NcActionButton, NcAppNavigationItem,