Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: opening text file with status bar
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Nov 23, 2022
commit 40b53a7d58a2f0a25fe732fe98df95b5ab1a235e
21 changes: 15 additions & 6 deletions cypress/integration/files.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,25 @@
*
*/

import { randHash } from '../utils/'
const randUser = randHash()

describe('Files default view', function() {
beforeEach(function() {
cy.login('admin', 'admin')
before(function() {
cy.nextcloudCreateUser(randUser, 'password')
cy.login(randUser, 'password')
cy.createFile('textfile.txt', '', 'text/plain')
})

it('See the default files list', function() {
cy.get('#fileList tr').should('contain', 'welcome.txt')
beforeEach(function() {
cy.login(randUser, 'password')
})

it('Take screenshot', function() {
cy.screenshot()
it('opens plain text files', function() {
cy.get('#fileList tr').should('contain', 'textfile.txt')
cy.openFile('textfile.txt')
cy.get('.modal-title').should('contain', 'textfile.txt')
cy.get('#editor-session-list').should('contain', 'Saved')
})

})