diff options
author | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-07-28 20:09:29 +0300 |
---|---|---|
committer | Vinicius Reis <vinicius.reis@nextcloud.com> | 2022-07-28 20:09:29 +0300 |
commit | d4276c6067f20ce0832a405e30f0fc95d652510d (patch) | |
tree | c3b673c6574e456de4c6199e7df5b6f12e652dae /cypress | |
parent | 463f6d829ac496c491f29c8d11ea9211966260c6 (diff) |
✅ small test adjusts
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/files.spec.js | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/cypress/e2e/files.spec.js b/cypress/e2e/files.spec.js index 15f095168..93f1999ba 100644 --- a/cypress/e2e/files.spec.js +++ b/cypress/e2e/files.spec.js @@ -20,16 +20,24 @@ * */ -describe('Files default view', function() { - beforeEach(function() { - cy.login('admin', 'admin') +import { randHash } from '../utils/index.js' + +const randUser = randHash() + +describe('Files default view', () => { + before(() => { + cy.nextcloudCreateUser(randUser, randUser) + }) + + beforeEach(() => { + cy.login(randUser, randUser) }) - it('See the default files list', function() { - cy.get('.files-fileList tr').should('contain', 'welcome.txt') + it('See the default files list', () => { + cy.get('#app-content-files table tr').should('contain', 'welcome.txt') }) - it('Take screenshot', function() { + it('Take screenshot', () => { cy.screenshot() }) }) |