From a0a9b85626dbab8d943c533814a5c55243a28e74 Mon Sep 17 00:00:00 2001 From: Nicolas Merget Date: Wed, 11 Dec 2024 10:06:34 +0100 Subject: [PATCH] fix: issue with playwright and vue --- packages/components/src/components/checkbox/checkbox.spec.tsx | 2 +- packages/components/src/components/radio/radio.spec.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/components/checkbox/checkbox.spec.tsx b/packages/components/src/components/checkbox/checkbox.spec.tsx index c0c1993293c..4ed1db11dc2 100644 --- a/packages/components/src/components/checkbox/checkbox.spec.tsx +++ b/packages/components/src/components/checkbox/checkbox.spec.tsx @@ -23,7 +23,7 @@ const testA11y = () => { const component = await mount(comp); const snapshot = await component.ariaSnapshot(); // Some wired issue with react and playwright ariaSnapshot in this case - const playwrightReactIssueFix = snapshot.replace(': on', ''); + const playwrightReactIssueFix = snapshot.replace(': "on"', ''); expect(playwrightReactIssueFix).toMatchSnapshot( `${testInfo.testId}.yaml` ); diff --git a/packages/components/src/components/radio/radio.spec.tsx b/packages/components/src/components/radio/radio.spec.tsx index 54ad437ec68..073a8e5e6e9 100644 --- a/packages/components/src/components/radio/radio.spec.tsx +++ b/packages/components/src/components/radio/radio.spec.tsx @@ -23,7 +23,7 @@ const testA11y = () => { const component = await mount(comp); const snapshot = await component.ariaSnapshot(); // Some wired issue with react and playwright ariaSnapshot in this case - const playwrightReactIssueFix = snapshot.replace(': on', ''); + const playwrightReactIssueFix = snapshot.replace(': "on"', ''); expect(playwrightReactIssueFix).toMatchSnapshot( `${testInfo.testId}.yaml` );