diff options
Diffstat (limited to 'cypress/e2e/workspace.spec.js')
-rw-r--r-- | cypress/e2e/workspace.spec.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cypress/e2e/workspace.spec.js b/cypress/e2e/workspace.spec.js index 5570ce8ea..2f001eb4d 100644 --- a/cypress/e2e/workspace.spec.js +++ b/cypress/e2e/workspace.spec.js @@ -44,8 +44,8 @@ describe('Workspace', function() { }) it('Hides the workspace when switching to another folder', function() { - cy.uploadFile('test.md', 'text/markdown', `${Cypress.currentTest.title}/README.md`) - cy.createFolder(`${Cypress.currentTest.title}/subdirectory`) + cy.uploadFile('test.md', 'text/markdown', `${currentFolder}/README.md`) + cy.createFolder(`${currentFolder}/subdirectory`) cy.reload() cy.get('.files-fileList').should('contain', 'README.md') cy.get('#rich-workspace .ProseMirror') @@ -57,15 +57,14 @@ describe('Workspace', function() { }) it('Hides the workspace when switching to another view', function() { - cy.uploadFile('test.md', 'text/markdown', `${Cypress.currentTest.title}/README.md`) + cy.uploadFile('test.md', 'text/markdown', `${currentFolder}/README.md`) cy.reload() cy.get('.files-fileList').should('contain', 'README.md') cy.get('#rich-workspace .ProseMirror') .should('contain', 'Hello world') cy.get('.nav-recent') .click() - cy.get('#rich-workspace') - .get('.ProseMirror') + cy.get('#rich-workspace .ProseMirror') .should('not.exist') }) |