From 96d947519d621335593b58dff7069405a605aea2 Mon Sep 17 00:00:00 2001 From: NasgulNexus Date: Mon, 25 Dec 2023 15:58:02 +0100 Subject: [PATCH] fix: eslint warning --- playwright/core/expectScreenshotFixture.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playwright/core/expectScreenshotFixture.ts b/playwright/core/expectScreenshotFixture.ts index 065cb55bee..2413840788 100644 --- a/playwright/core/expectScreenshotFixture.ts +++ b/playwright/core/expectScreenshotFixture.ts @@ -15,8 +15,8 @@ export const expectScreenshotFixture: PlaywrightFixture const captureScreenshot = async (theme: string) => { const root = page.locator('#root'); - await root.evaluate((el, theme) => { - el.classList.value = `g-root g-root_theme_${theme}`; + await root.evaluate((el, newTheme) => { + el.setAttribute('class', `g-root g-root_theme_${newTheme}`); }, theme); return (component || page.locator('.playwright-wrapper-test')).screenshot({