add eslint for cypress tests
Signed-off-by: Simon Hötten <s+git@hoetten.org>
This commit is contained in:
committed by
Julius Härtl
parent
50ca4de351
commit
584675db21
5
cypress/.eslintrc.js
Normal file
5
cypress/.eslintrc.js
Normal file
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'plugin:cypress/recommended',
|
||||
],
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import { randHash } from '../utils'
|
||||
import { randHash } from '../utils/index.js'
|
||||
const randUser = randHash()
|
||||
|
||||
describe('Board', function() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { randHash } from '../utils'
|
||||
import { randHash } from '../utils/index.js'
|
||||
const randUser = randHash()
|
||||
|
||||
const testBoardData = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { randHash } from '../utils'
|
||||
import { randHash } from '../utils/index.js'
|
||||
const randUser = randHash()
|
||||
|
||||
describe('Deck dashboard', function() {
|
||||
@@ -14,8 +14,8 @@ describe('Deck dashboard', function() {
|
||||
|
||||
it('Can show the right title on the dashboard', function() {
|
||||
cy.get('.board-title h2')
|
||||
.should('have.length', 1).first()
|
||||
.should('have.text', 'Upcoming cards')
|
||||
.should('have.length', 1).first()
|
||||
.should('have.text', 'Upcoming cards')
|
||||
})
|
||||
|
||||
it('Can see the default "Personal Board" created for user by default', function() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { randHash } from '../utils'
|
||||
import { randHash } from '../utils/index.js'
|
||||
const randUser = randHash()
|
||||
|
||||
describe('Stack', function() {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
import './commands'
|
||||
import './commands.js'
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
|
||||
Reference in New Issue
Block a user