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
committerJulius Härtl <jus@bitgrid.net>2020-11-17 11:01:10 +0300
commitc341aa215b5877fd5a12f54035621b795c0ce7df (patch)
tree606608d6cd9538ed5eedf254e799a376f703f335 /cypress
parentbaa900546cabc21f04b07f63ce9264fd934e81be (diff)
Adjust viewer id
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'cypress')
-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() {