diff --git a/compiler/apps/playground/__tests__/e2e/page.spec.ts b/compiler/apps/playground/__tests__/e2e/page.spec.ts index ef0305a0c4..3bb6637f95 100644 --- a/compiler/apps/playground/__tests__/e2e/page.spec.ts +++ b/compiler/apps/playground/__tests__/e2e/page.spec.ts @@ -28,7 +28,6 @@ test("editor should compile successfully", async ({ page }) => { }); // User input from hash compiles - await page.getByRole("button", { name: /JS/ }).click(); await page.screenshot({ fullPage: true, path: "test-results/01-show-js-before.png", diff --git a/compiler/apps/playground/components/Editor/Output.tsx b/compiler/apps/playground/components/Editor/Output.tsx index 0847e044c5..3ca0942a46 100644 --- a/compiler/apps/playground/components/Editor/Output.tsx +++ b/compiler/apps/playground/components/Editor/Output.tsx @@ -177,7 +177,7 @@ function getSourceMapUrl(code: string, map: string): string | null { } function Output({ store, compilerOutput }: Props) { - const [tabsOpen, setTabsOpen] = useState>(() => new Set()); + const [tabsOpen, setTabsOpen] = useState>(() => new Set(['JS'])); const [tabs, setTabs] = useState>( () => new Map(), );