mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-25 07:33:07 +01:00
Fix cypress suite
- split out cypress tests for plugins to be isolated - use updated testca image from proper location
This commit is contained in:
1 parent
03c70e3902
commit
7e9cc32f97
13 files changed
+279
-22
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
// Only tested once in the sqlite stack
|
||||
|
||||
describe('CertbotPlugins', () => {
|
||||
describe('CertbotPlugins', { tags: '@isolated' }, () => {
|
||||
it('Should install all certbot plugins', () => {
|
||||
cy.env(['stack']).then(({ stack }) => {
|
||||
cy.log(`CertbotPlugins.cy.js - Running tests for stack: ${stack}`);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { plugin as cypressGrepPlugin } from "@cypress/grep/plugin";
|
||||
import { SwaggerValidation } from "@jc21/cypress-swagger-validation";
|
||||
import chalk from "chalk";
|
||||
import backendTask from "./backendApi/task.mjs";
|
||||
@@ -11,6 +12,8 @@ export default (on, config) => {
|
||||
);
|
||||
}
|
||||
|
||||
cypressGrepPlugin(config);
|
||||
|
||||
// Plugin Events
|
||||
on("task", SwaggerValidation(config));
|
||||
on("task", backendTask(config));
|
||||
@@ -22,9 +25,9 @@ export default (on, config) => {
|
||||
return null;
|
||||
},
|
||||
});
|
||||
on('task', {
|
||||
on("task", {
|
||||
getFixturesFolder() {
|
||||
return config.fixturesFolder
|
||||
return config.fixturesFolder;
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
import './commands.mjs';
|
||||
import "./commands.mjs";
|
||||
|
||||
Cypress.on('uncaught:exception', (/*err, runnable*/) => {
|
||||
import { register as registerCypressGrep } from "@cypress/grep";
|
||||
|
||||
registerCypressGrep();
|
||||
|
||||
Cypress.on("uncaught:exception", (/*err, runnable*/) => {
|
||||
// returning false here prevents Cypress from
|
||||
// failing the test
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user