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,5 +1,5 @@
import { randHash } from '../utils/index.js'
const randUser = randHash()
import { randUser } from '../utils/index.js'
const user = randUser()
const testBoardData = {
title: 'MyBoardTest',
@@ -18,16 +18,18 @@ const testBoardData = {
describe('Card', function() {
before(function() {
cy.nextcloudCreateUser(randUser, randUser)
cy.createUser(user)
cy.login(user)
cy.createExampleBoard({
user: randUser,
password: randUser,
user: user.userId,
password: user.password,
board: testBoardData,
})
})
beforeEach(function() {
cy.login(randUser, randUser)
cy.login(user)
cy.visit('/apps/deck')
})
it('Can show card details modal', function() {