Fix cypress suite

- split out cypress tests for plugins to be isolated
- use updated testca image from proper location
This commit is contained in:
Jamie Curnow committed 2026-05-27 07:25:24 +10:00
1 parent 03c70e3902
commit 7e9cc32f97
13 files changed
+279 -22

No files matched your search

+1 -1
View File
@@ -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}`);
+5 -2
View File
@@ -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;
},
});
+6 -2
View File
@@ -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;