We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 674f4d1 commit d0d7edfCopy full SHA for d0d7edf
packages/sdks-tests/src/helpers/visual-editor.ts
@@ -1,4 +1,4 @@
1
-import type { Page } from '@playwright/test';
+import { type Page } from '@playwright/test';
2
import { EMBEDDER_PORT, GEN1_SDK_LOADED_MSG, GEN2_SDK_LOADED_MSG } from './context.js';
3
import type { BuilderContent } from '../specs/types.js';
4
import type { Sdk } from './sdk.js';
@@ -24,8 +24,7 @@ export const launchEmbedderAndWaitForSdk = async ({
24
}) => {
25
if (sdk === 'oldReact') {
26
await page.route('https://cdn.builder.io/api/v3/query/**', async route => {
27
- const newLocal = PAGES[path as keyof typeof PAGES];
28
-
+ const newLocal = PAGES[path as keyof typeof PAGES].content;
29
await route.fulfill({
30
status: 200,
31
contentType: 'application/json',
0 commit comments