mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix cypress config
This commit is contained in:
parent
c9ffa23f0d
commit
926ca9c209
@ -2,6 +2,8 @@ import { defineConfig } from "cypress";
|
|||||||
import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-preprocessor";
|
import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-preprocessor";
|
||||||
import browserify from "@badeball/cypress-cucumber-preprocessor/browserify";
|
import browserify from "@badeball/cypress-cucumber-preprocessor/browserify";
|
||||||
|
|
||||||
|
let resetPasswordLink: string;
|
||||||
|
|
||||||
async function setupNodeEvents(
|
async function setupNodeEvents(
|
||||||
on: Cypress.PluginEvents,
|
on: Cypress.PluginEvents,
|
||||||
config: Cypress.PluginConfigOptions
|
config: Cypress.PluginConfigOptions
|
||||||
@ -15,6 +17,15 @@ async function setupNodeEvents(
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
on("task", {
|
||||||
|
setResetPasswordLink: (val) => {
|
||||||
|
return (resetPasswordLink = val);
|
||||||
|
},
|
||||||
|
getResetPasswordLink: () => {
|
||||||
|
return resetPasswordLink;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
on("after:run", (results) => {
|
on("after:run", (results) => {
|
||||||
if (results) {
|
if (results) {
|
||||||
// results will be undefined in interactive mode
|
// results will be undefined in interactive mode
|
||||||
@ -30,6 +41,7 @@ export default defineConfig({
|
|||||||
e2e: {
|
e2e: {
|
||||||
specPattern: "**/*.feature",
|
specPattern: "**/*.feature",
|
||||||
excludeSpecPattern: "*.js",
|
excludeSpecPattern: "*.js",
|
||||||
|
experimentalSessionAndOrigin: true,
|
||||||
baseUrl: "http://localhost:3000",
|
baseUrl: "http://localhost:3000",
|
||||||
chromeWebSecurity: false,
|
chromeWebSecurity: false,
|
||||||
defaultCommandTimeout: 10000,
|
defaultCommandTimeout: 10000,
|
||||||
@ -43,6 +55,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
backendURL: "http://localhost:4000",
|
backendURL: "http://localhost:4000",
|
||||||
|
mailserverURL: "http://localhost:1080",
|
||||||
loginQuery: `query ($email: String!, $password: String!, $publisherId: Int) {
|
loginQuery: `query ($email: String!, $password: String!, $publisherId: Int) {
|
||||||
login(email: $email, password: $password, publisherId: $publisherId) {
|
login(email: $email, password: $password, publisherId: $publisherId) {
|
||||||
email
|
email
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user