This commit is contained in:
mahula 2025-05-05 07:09:18 +02:00
parent 30080a44c2
commit b678c58c68
4 changed files with 2309 additions and 2 deletions

View File

@ -1,6 +1,7 @@
const dotenv = require('dotenv')
import dotenv from 'dotenv'
const { defineConfig } = require('cypress');
const browserify = require('@cypress/browserify-preprocessor');
//const browserify = require('@cypress/browserify-preprocessor');
import browserify from '@cypress/browserify-preprocessor'
const {
addCucumberPreprocessorPlugin,
} = require('@badeball/cypress-cucumber-preprocessor');

18
cypress/eslint.config.mjs Normal file
View File

@ -0,0 +1,18 @@
import js from "@eslint/js";
import globals from "globals";
import { defineConfig } from "eslint/config";
import pluginCypress from 'eslint-plugin-cypress/flat'
export default defineConfig([
pluginCypress.configs.globals,
pluginCypress.configs.recommended,
{ files: ["**/*.{js,mjs,cjs}"], plugins: { js }, extends: ["js/recommended"] },
{ files: ["**/*.{js,mjs,cjs}"], languageOptions: { globals: globals.browser } },
{
plugins: {
cypress: pluginCypress
},
}
]);

20
cypress/package.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "ocelot-social-cypress",
"version": "3.4.0",
"description": "End-to-end testing via Cypress for ocelot.social",
"repository": "https://github.com/Ocelot-Social-Community/Ocelot-Social",
"author": "ocelot.social Community",
"license": "MIT",
"private": false,
"devDependencies": {
"@eslint/js": "^9.26.0",
"eslint": "^9.26.0",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-cypress": "^4.3.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.6",
"eslint-plugin-security": "^3.0.1",
"globals": "^16.0.0",
"prettier": "^3.5.3"
}
}

2268
cypress/yarn.lock Normal file

File diff suppressed because it is too large Load Diff