mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge branch 'master' into backend-dependency-update
This commit is contained in:
commit
47b479c878
@ -1,7 +1,12 @@
|
||||
const dotenv = require('dotenv')
|
||||
const { defineConfig } = require("cypress");
|
||||
const browserify = require("@badeball/cypress-cucumber-preprocessor/browserify");
|
||||
const { addCucumberPreprocessorPlugin } = require("@badeball/cypress-cucumber-preprocessor");
|
||||
const { defineConfig } = require('cypress');
|
||||
const browserify = require('@cypress/browserify-preprocessor');
|
||||
const {
|
||||
addCucumberPreprocessorPlugin,
|
||||
} = require('@badeball/cypress-cucumber-preprocessor');
|
||||
const {
|
||||
preprendTransformerToOptions,
|
||||
} = require('@badeball/cypress-cucumber-preprocessor/browserify');
|
||||
|
||||
// Test persistent(between commands) store
|
||||
const testStore = {}
|
||||
@ -9,15 +14,18 @@ const testStore = {}
|
||||
async function setupNodeEvents(on, config) {
|
||||
await addCucumberPreprocessorPlugin(on, config);
|
||||
|
||||
on("file:preprocessor", browserify.default(config));
|
||||
on(
|
||||
'file:preprocessor',
|
||||
browserify(preprendTransformerToOptions(config, browserify.defaultOptions)),
|
||||
);
|
||||
|
||||
on("task", {
|
||||
on('task', {
|
||||
pushValue({ name, value }) {
|
||||
testStore[name] = value
|
||||
return true
|
||||
},
|
||||
getValue(name) {
|
||||
console.log("getValue",name,testStore)
|
||||
console.log('getValue',name,testStore)
|
||||
return testStore[name]
|
||||
},
|
||||
});
|
||||
@ -30,13 +38,13 @@ const { parsed } = dotenv.config({ path: '../backend/.env' })
|
||||
|
||||
module.exports = defineConfig({
|
||||
e2e: {
|
||||
projectId: "qa7fe2",
|
||||
projectId: 'qa7fe2',
|
||||
defaultCommandTimeout: 60000,
|
||||
pageLoadTimeout:180000,
|
||||
chromeWebSecurity: false,
|
||||
baseUrl: "http://localhost:3000",
|
||||
specPattern: "cypress/e2e/**/*.feature",
|
||||
supportFile: "cypress/support/e2e.js",
|
||||
baseUrl: 'http://localhost:3000',
|
||||
specPattern: '**/*.feature',
|
||||
supportFile: 'cypress/support/e2e.js',
|
||||
retries: 0,
|
||||
video: false,
|
||||
viewportHeight: 720,
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
"@babel/core": "^7.26.0",
|
||||
"@babel/preset-env": "^7.26.0",
|
||||
"@babel/register": "^7.25.9",
|
||||
"@badeball/cypress-cucumber-preprocessor": "^20.0.4",
|
||||
"@badeball/cypress-cucumber-preprocessor": "^21.0.2",
|
||||
"@cucumber/cucumber": "10.6.0",
|
||||
"@cypress/browserify-preprocessor": "^3.0.2",
|
||||
"@faker-js/faker": "9.1.0",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user