From 6cbffb0b538c4bd311527251ed504a9c594feb55 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 5 Mar 2025 15:04:44 +0100 Subject: [PATCH] fix(test): Escape quotes in runOccCommand argument Signed-off-by: Louis Chemineau --- cypress/e2e/theming/a11y-color-contrast.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/theming/a11y-color-contrast.cy.ts b/cypress/e2e/theming/a11y-color-contrast.cy.ts index 9d3ca2657fb..ce75e73d6db 100644 --- a/cypress/e2e/theming/a11y-color-contrast.cy.ts +++ b/cypress/e2e/theming/a11y-color-contrast.cy.ts @@ -110,7 +110,7 @@ describe('Accessibility of Nextcloud theming colors', () => { before(() => { cy.createRandomUser().then(($user) => { // set user theme - cy.runOccCommand(`user:setting -- '${$user.userId}' theming enabled-themes '["${theme}"]'`) + cy.runOccCommand(`user:setting -- '${$user.userId}' theming enabled-themes '[\\"${theme}\\"]'`) cy.login($user) cy.visit('/') cy.injectAxe({ axeCorePath: 'node_modules/axe-core/axe.min.js' })