From dff978a63c5b8998cd7dadbf01e84e55aa4e7164 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 20 May 2026 07:52:46 +1000 Subject: [PATCH] Tests: install mkcert before generating --- test/cypress/support/commands.mjs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/cypress/support/commands.mjs b/test/cypress/support/commands.mjs index 12db1994e..5d753abcd 100644 --- a/test/cypress/support/commands.mjs +++ b/test/cypress/support/commands.mjs @@ -159,13 +159,12 @@ 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 -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); - // Install CA - cy.exec('mkcert -install').then((result) => { + 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); }); - }); + }); }); });