Skip to content

Commit 8a5f6c8

Browse files
committed
feat: Removed spec code to change theme
1 parent d874a7d commit 8a5f6c8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/src/visual-regression.spec.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ test.describe('Testing old theme', () => {
66
}) => {
77
const currentPlus = 'nginx/installing-nginx-open-source/';
88
await page.goto(`/${currentPlus}`, { waitUntil: 'networkidle' });
9-
await page.evaluate(() => {
10-
// switch to old theme
11-
useNewTheme(false);
12-
window.scrollTo(0, 0);
13-
});
149
await page.waitForFunction(() => window.scrollY === 0);
1510
await expect(page).toHaveScreenshot('example-site-screenshot.png', {
1611
fullPage: true,

0 commit comments

Comments
 (0)