diff --git a/cypress/e2e/conflict.spec.js b/cypress/e2e/conflict.spec.js index da4b2199d6c..bd4cfde7c57 100644 --- a/cypress/e2e/conflict.spec.js +++ b/cypress/e2e/conflict.spec.js @@ -41,7 +41,7 @@ variants.forEach(function ({ fixture, mime }) { }).should('contain', 'session has expired') // Reload button works - cy.get('#editor-container .document-status a.button') + cy.get('#editor-container .document-status button') .contains('Reload') .click() getWrapper().should('not.exist') diff --git a/cypress/e2e/sync.spec.js b/cypress/e2e/sync.spec.js index 5f35ee65085..e02ced4c53f 100644 --- a/cypress/e2e/sync.spec.js +++ b/cypress/e2e/sync.spec.js @@ -108,7 +108,7 @@ describe('Sync', () => { 'contain', 'The document could not be loaded.', ) - cy.get('#editor-container .document-status').find('.button.primary').click() + cy.get('#editor-container .document-status').find('button').click() cy.get('#editor-container .document-status', { timeout: 30000 }).should( 'contain', 'The document could not be loaded.', @@ -118,7 +118,7 @@ describe('Sync', () => { req.continue() }).as('alive') cy.intercept('**/apps/text/session/*/create').as('create') - cy.get('#editor-container .document-status').find('.button.primary').click() + cy.get('#editor-container .document-status').find('button').click() cy.wait('@alive', { timeout: 30000 }) cy.wait('@create', { timeout: 10000 }) .its('request.body') @@ -150,7 +150,7 @@ describe('Sync', () => { ) // Reconnect button works - it closes and reopens the session - cy.get('#editor-container .document-status a.button') + cy.get('#editor-container .document-status button') .contains('Reconnect') .click() @@ -182,7 +182,7 @@ describe('Sync', () => { ) // Reload button works - cy.get('#editor-container .document-status a.button') + cy.get('#editor-container .document-status button') .contains('Reload') .click() diff --git a/src/components/BaseReader.vue b/src/components/BaseReader.vue index 2c6ee92618e..c8164cf3b91 100644 --- a/src/components/BaseReader.vue +++ b/src/components/BaseReader.vue @@ -66,6 +66,10 @@ export default { diff --git a/src/tests/components/__snapshots__/SyncStatus.spec.js.snap b/src/tests/components/__snapshots__/SyncStatus.spec.js.snap index 0f9e2605783..95be9a58c82 100644 --- a/src/tests/components/__snapshots__/SyncStatus.spec.js.snap +++ b/src/tests/components/__snapshots__/SyncStatus.spec.js.snap @@ -2,21 +2,28 @@ exports[`renders hasConnectionIssue 1`] = ` " -

The document could not be loaded. Please check your internet connection. Reconnect

+
+
The document could not be loaded. Please check your internet connection.
+ Reconnect +
" `; exports[`renders idle 1`] = ` " -

You've been disconnected from the server. Reconnect

+
+
You've been disconnected from the server.
+ Reconnect +
" `; exports[`renders sync error 0 1`] = ` " -

The file was overwritten. Your current changes cannot be auto-saved. Please choose how to proceed. +

+
The file was overwritten. Your current changes cannot be auto-saved. Please choose how to proceed.
-

+
" `; @@ -28,7 +35,10 @@ exports[`renders sync error 1 1`] = ` exports[`renders sync error 2 1`] = ` " -

Error Message goes here Reload

+
+
Error Message goes here
+ Reload +
" `;