test(cypress): Move to @nextcloud/cypress

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2022-12-30 15:40:07 +01:00
parent 2be2afba16
commit 5958632534
9 changed files with 59 additions and 82 deletions

View File

@@ -1,15 +1,15 @@
import { randHash } from '../utils/index.js'
const randUser = randHash()
import { randUser } from '../utils/index.js'
const user = randUser()
describe('Board', function() {
const password = 'pass123'
before(function() {
cy.nextcloudCreateUser(randUser, password)
cy.createUser(user)
})
beforeEach(function() {
cy.login(randUser, password)
cy.login(user)
cy.visit('/apps/deck')
})
it('Can create a board', function() {