Move cypress/tests/cypress folder to src

This commit is contained in:
elweyn 2023-02-10 12:12:17 +01:00
parent 140b53faf3
commit 9008c96d0f
31 changed files with 24 additions and 18 deletions

View File

@ -2,6 +2,7 @@ module.exports = {
root: true, root: true,
env: { env: {
node: true, node: true,
cypress: true,
}, },
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
plugins: ['cypress', 'prettier', '@typescript-eslint' /*, 'jest' */], plugins: ['cypress', 'prettier', '@typescript-eslint' /*, 'jest' */],

View File

@ -1,4 +1,4 @@
tests/node_modules/ node_modules/
tests/cypress/screenshots/ src/screenshots/
tests/cypress/videos/ src/videos/
tests/cucumber-messages.ndjson src/cucumber-messages.ndjson

View File

@ -11,7 +11,7 @@
############################################################################### ###############################################################################
FROM cypress/base:16.14.2-slim FROM cypress/base:16.14.2-slim
ARG DOCKER_WORKDIR=/tests/ ARG DOCKER_WORKDIR"="/tests"
WORKDIR $DOCKER_WORKDIR WORKDIR $DOCKER_WORKDIR
# install dependencies # install dependencies

View File

@ -1,6 +1,6 @@
import { Then, When } from '@badeball/cypress-cucumber-preprocessor' import { Then, When } from '@badeball/cypress-cucumber-preprocessor'
import { ResetPasswordPage } from '../../e2e/models/ResetPasswordPage' import { ResetPasswordPage } from '@models/ResetPasswordPage'
import { UserEMailSite } from '../../e2e/models/UserEMailSite' import { UserEMailSite } from '@models/UserEMailSite'
const userEMailSite = new UserEMailSite() const userEMailSite = new UserEMailSite()
const resetPasswordPage = new ResetPasswordPage() const resetPasswordPage = new ResetPasswordPage()

View File

@ -1,5 +1,5 @@
import { And, When } from '@badeball/cypress-cucumber-preprocessor' import { And, When } from '@badeball/cypress-cucumber-preprocessor'
import { RegistrationPage } from '../../e2e/models/RegistrationPage' import { RegistrationPage } from '@models/RegistrationPage'
const registrationPage = new RegistrationPage() const registrationPage = new RegistrationPage()

View File

@ -1,10 +0,0 @@
{
"compilerOptions": {
"target": "es2016",
"lib": ["es6", "dom"],
"baseUrl": ".",
"types": ["cypress", "node"],
"strict": true
},
"include": ["**/*.ts"]
}

View File

@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "es2016",
"lib": ["es6", "dom"],
"baseUrl": ".",
"types": ["cypress", "node"],
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node",
"paths": {
"@/*": ["src/*"],
"@models/*": ["src/e2e/models/*"],
}
},
}