From c354238c3524fdd0d99985dad52798f0289c9542 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 20 May 2026 08:05:24 +1000 Subject: [PATCH] Testing mkcert in test suite --- test/cypress/support/commands.mjs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/cypress/support/commands.mjs b/test/cypress/support/commands.mjs index 5d753abcd..0001ded8e 100644 --- a/test/cypress/support/commands.mjs +++ b/test/cypress/support/commands.mjs @@ -159,12 +159,8 @@ Cypress.Commands.add('waitForCertificateStatus', (token, certID, expected, timeo // for testing and are in a known state. Cypress.Commands.add('createCustomCerts', () => { cy.task('getFixturesFolder').then((fixturesFolder) => { - cy.exec('mkcert -install').then((result) => { - expect(result.exitCode).to.eq(0); - cy.exec(`mkcert -cert-file=${fixturesFolder}/test.example.com.pem -key-file=${fixturesFolder}/test.example.com-key.pem test.example.com`) - .then((result) => { - expect(result.exitCode).to.eq(0); - }); + cy.exec('mkcert -install', {failOnNonZeroExit: false}).then(() => { + cy.exec(`mkcert -cert-file=${fixturesFolder}/test.example.com.pem -key-file=${fixturesFolder}/test.example.com-key.pem test.example.com`, {failOnNonZeroExit: false}); }); }); });