Skip to content

Commit b60721e

Browse files
Merge 7eb43fd into 877e32d
2 parents 877e32d + 7eb43fd commit b60721e

17 files changed

Lines changed: 49 additions & 31 deletions

β€Žcypress/integration/files.spec.jsβ€Ž

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,25 @@
2020
*
2121
*/
2222

23+
import { randHash } from '../utils/'
24+
const randUser = randHash()
25+
2326
describe('Files default view', function() {
24-
beforeEach(function() {
25-
cy.login('admin', 'admin')
27+
before(function() {
28+
cy.nextcloudCreateUser(randUser, 'password')
29+
cy.login(randUser, 'password')
30+
cy.createFile('textfile.txt', '', 'text/plain')
2631
})
2732

28-
it('See the default files list', function() {
29-
cy.get('#fileList tr').should('contain', 'welcome.txt')
33+
beforeEach(function() {
34+
cy.login(randUser, 'password')
3035
})
3136

32-
it('Take screenshot', function() {
33-
cy.screenshot()
37+
it('opens plain text files', function() {
38+
cy.get('#fileList tr').should('contain', 'textfile.txt')
39+
cy.openFile('textfile.txt')
40+
cy.get('.modal-title').should('contain', 'textfile.txt')
41+
cy.get('#editor-session-list').should('contain', 'Saved')
3442
})
43+
3544
})

β€Žjs/editor-rich.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/editor-rich.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/editor.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/editor.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/files-modal.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/files-modal.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-files.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-files.js.mapβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/text-public.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)