diff options
author | Azul <azul@riseup.net> | 2021-08-02 11:47:57 +0300 |
---|---|---|
committer | Azul <azul@riseup.net> | 2021-08-02 11:48:05 +0300 |
commit | 6112b7257a6728f3c2a14fe27f149837038e0422 (patch) | |
tree | 4e0c466c1b64edac43e771c4a94b378d98814015 /cypress | |
parent | 937d855ea460465082cfbc0d727cb605caabdd8e (diff) |
fix: cypress icon close selector
The markup of the close icon has changed.
See https://github.com/nextcloud/viewer/commit/f7bcfd0464987d889c706f3e3514d3db3ab73907
for a similar fix to the viewer itself.
Signed-off-by: Azul <azul@riseup.net>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/integration/viewer.spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cypress/integration/viewer.spec.js b/cypress/integration/viewer.spec.js index d28360927..dfa447105 100644 --- a/cypress/integration/viewer.spec.js +++ b/cypress/integration/viewer.spec.js @@ -52,7 +52,7 @@ describe('Open test.md in viewer', function() { cy.get('#viewer').should('be.visible') cy.get('#viewer .modal-title').should('contain', 'test.md') cy.get('#viewer .modal-header button.action-item__menutoggle').should('be.visible') - cy.get('#viewer .modal-header button.icon-close').should('be.visible') + cy.get('#viewer .modal-header button.header-close').should('be.visible') cy.wait(2000) cy.get('#viewer', { timeout: 4000 }) @@ -75,7 +75,7 @@ describe('Open test.md in viewer', function() { }) it('Closes the editor', function() { - cy.get('.modal-header button.icon-close').click() + cy.get('.modal-header button.header-close').click() cy.get('#viewer').should('not.exist') }) |