Skip to content

Commit

Permalink
fix: eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
NasgulNexus committed Dec 25, 2023
1 parent 30a1ccb commit 96d9475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright/core/expectScreenshotFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export const expectScreenshotFixture: PlaywrightFixture<ExpectScreenshotFixture>
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({
Expand Down

0 comments on commit 96d9475

Please sign in to comment.