Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-17 10:14:49 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-11-17 11:34:33 +0300
commitf266a42e27fd131c7becbd26594379858914aa80 (patch)
treedfe0c2a2bd95da3496ccb5e71c027de4dbb4bf45
parent99e2389aaf702173b9986daf2122a5c2050241d3 (diff)
Adjust viewer id
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--cypress/integration/viewer.spec.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/cypress/integration/viewer.spec.js b/cypress/integration/viewer.spec.js
index 36e22edf4..e00b04b9c 100644
--- a/cypress/integration/viewer.spec.js
+++ b/cypress/integration/viewer.spec.js
@@ -49,21 +49,21 @@ describe('Open test.md in viewer', function() {
it('Open the viewer on file click', function() {
cy.visit('/apps/files')
cy.openFile('test.md')
- cy.get('#viewer-content').should('be.visible')
- cy.get('#viewer-content .modal-title').should('contain', 'test.md')
- cy.get('#viewer-content .modal-header button.icon-menu-sidebar-white-forced').should('be.visible')
- cy.get('#viewer-content .modal-header button.icon-close').should('be.visible')
+ cy.get('#viewer').should('be.visible')
+ cy.get('#viewer .modal-title').should('contain', 'test.md')
+ cy.get('#viewer .modal-header button.icon-menu-sidebar-white-forced').should('be.visible')
+ cy.get('#viewer .modal-header button.icon-close').should('be.visible')
cy.wait(2000)
- cy.get('#viewer-content', { timeout: 4000 })
+ cy.get('#viewer', { timeout: 4000 })
.should('be.visible')
.and('have.class', 'modal-mask')
.and('not.have.class', 'icon-loading')
})
it('Has opened the file', function() {
- cy.get('#viewer-content #editor .ProseMirror').should('contain', 'Hello world')
- cy.get('#viewer-content #editor .ProseMirror h2').should('contain', 'Hello world')
+ cy.get('#viewer #editor .ProseMirror').should('contain', 'Hello world')
+ cy.get('#viewer #editor .ProseMirror h2').should('contain', 'Hello world')
})
it('Shows the menu bar icons', function() {
@@ -76,7 +76,7 @@ describe('Open test.md in viewer', function() {
it('Closes the editor', function() {
cy.get('.modal-header button.icon-close').click()
- cy.get('#viewer-content').should('not.be.visible')
+ cy.get('#viewer').should('not.be.visible')
})
it('Take screenshot', function() {