Skip to content

Commit d0d7edf

Browse files
committed
🏃
1 parent 674f4d1 commit d0d7edf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/sdks-tests/src/helpers/visual-editor.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Page } from '@playwright/test';
1+
import { type Page } from '@playwright/test';
22
import { EMBEDDER_PORT, GEN1_SDK_LOADED_MSG, GEN2_SDK_LOADED_MSG } from './context.js';
33
import type { BuilderContent } from '../specs/types.js';
44
import type { Sdk } from './sdk.js';
@@ -24,8 +24,7 @@ export const launchEmbedderAndWaitForSdk = async ({
2424
}) => {
2525
if (sdk === 'oldReact') {
2626
await page.route('https://cdn.builder.io/api/v3/query/**', async route => {
27-
const newLocal = PAGES[path as keyof typeof PAGES];
28-
27+
const newLocal = PAGES[path as keyof typeof PAGES].content;
2928
await route.fulfill({
3029
status: 200,
3130
contentType: 'application/json',

0 commit comments

Comments
 (0)