diff options
| author | Adam <[email protected]> | 2026-03-27 20:26:57 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-28 01:26:57 +0000 |
| commit | f736116967f5b57d89978e51961f2e78eedb443b (patch) | |
| tree | eac11218e8114d8d0f14c1b133b2c0594721f11c /packages/app/e2e | |
| parent | 82fc493520925cb71323964bff6939e768e6d83a (diff) | |
| download | opencode-f736116967f5b57d89978e51961f2e78eedb443b.tar.gz opencode-f736116967f5b57d89978e51961f2e78eedb443b.zip | |
fix(app): more startup efficiency (#19454)
Diffstat (limited to 'packages/app/e2e')
| -rw-r--r-- | packages/app/e2e/settings/settings.spec.ts | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/packages/app/e2e/settings/settings.spec.ts b/packages/app/e2e/settings/settings.spec.ts index 0602e95c7..1b151b606 100644 --- a/packages/app/e2e/settings/settings.spec.ts +++ b/packages/app/e2e/settings/settings.spec.ts @@ -159,7 +159,7 @@ test("typing a code font with spaces persists and updates CSS variable", async ( const dialog = await openSettings(page) const input = dialog.locator(settingsCodeFontSelector) await expect(input).toBeVisible() - await expect(input).toHaveAttribute("placeholder", "IBM Plex Mono") + await expect(input).toHaveAttribute("placeholder", "System Mono") const initialFontFamily = await page.evaluate(() => getComputedStyle(document.documentElement).getPropertyValue("--font-family-mono").trim(), @@ -167,7 +167,7 @@ test("typing a code font with spaces persists and updates CSS variable", async ( const initialUIFamily = await page.evaluate(() => getComputedStyle(document.documentElement).getPropertyValue("--font-family-sans").trim(), ) - expect(initialFontFamily).toContain("IBM Plex Mono") + expect(initialFontFamily).toContain("ui-monospace") const next = "Test Mono" @@ -185,7 +185,7 @@ test("typing a code font with spaces persists and updates CSS variable", async ( }) .toMatchObject({ appearance: { - font: next, + mono: next, }, }) @@ -206,7 +206,7 @@ test("typing a UI font with spaces persists and updates CSS variable", async ({ const dialog = await openSettings(page) const input = dialog.locator(settingsUIFontSelector) await expect(input).toBeVisible() - await expect(input).toHaveAttribute("placeholder", "Inter") + await expect(input).toHaveAttribute("placeholder", "System Sans") const initialFontFamily = await page.evaluate(() => getComputedStyle(document.documentElement).getPropertyValue("--font-family-sans").trim(), @@ -214,7 +214,7 @@ test("typing a UI font with spaces persists and updates CSS variable", async ({ const initialCodeFamily = await page.evaluate(() => getComputedStyle(document.documentElement).getPropertyValue("--font-family-mono").trim(), ) - expect(initialFontFamily).toContain("Inter") + expect(initialFontFamily).toContain("ui-sans-serif") const next = "Test Sans" @@ -232,7 +232,7 @@ test("typing a UI font with spaces persists and updates CSS variable", async ({ }) .toMatchObject({ appearance: { - uiFont: next, + sans: next, }, }) @@ -267,14 +267,14 @@ test("clearing the code font field restores the default placeholder and stack", }) .toMatchObject({ appearance: { - font: "Reset Mono", + mono: "Reset Mono", }, }) await input.clear() await input.press("Space") await expect(input).toHaveValue("") - await expect(input).toHaveAttribute("placeholder", "IBM Plex Mono") + await expect(input).toHaveAttribute("placeholder", "System Mono") await expect .poll(async () => { @@ -285,14 +285,14 @@ test("clearing the code font field restores the default placeholder and stack", }) .toMatchObject({ appearance: { - font: "", + mono: "", }, }) const fontFamily = await page.evaluate(() => getComputedStyle(document.documentElement).getPropertyValue("--font-family-mono").trim(), ) - expect(fontFamily).toContain("IBM Plex Mono") + expect(fontFamily).toContain("ui-monospace") expect(fontFamily).not.toContain("Reset Mono") }) @@ -316,14 +316,14 @@ test("clearing the UI font field restores the default placeholder and stack", as }) .toMatchObject({ appearance: { - uiFont: "Reset Sans", + sans: "Reset Sans", }, }) await input.clear() await input.press("Space") await expect(input).toHaveValue("") - await expect(input).toHaveAttribute("placeholder", "Inter") + await expect(input).toHaveAttribute("placeholder", "System Sans") await expect .poll(async () => { @@ -334,14 +334,14 @@ test("clearing the UI font field restores the default placeholder and stack", as }) .toMatchObject({ appearance: { - uiFont: "", + sans: "", }, }) const fontFamily = await page.evaluate(() => getComputedStyle(document.documentElement).getPropertyValue("--font-family-sans").trim(), ) - expect(fontFamily).toContain("Inter") + expect(fontFamily).toContain("ui-sans-serif") expect(fontFamily).not.toContain("Reset Sans") }) @@ -373,8 +373,8 @@ test("color scheme, code font, and UI font rehydrate after reload", async ({ pag return raw ? JSON.parse(raw) : null }, settingsKey) - const mono = initialSettings?.appearance?.font === "Reload Mono" ? "Reload Mono 2" : "Reload Mono" - const sans = initialSettings?.appearance?.uiFont === "Reload Sans" ? "Reload Sans 2" : "Reload Sans" + const mono = initialSettings?.appearance?.mono === "Reload Mono" ? "Reload Mono 2" : "Reload Mono" + const sans = initialSettings?.appearance?.sans === "Reload Sans" ? "Reload Sans 2" : "Reload Sans" await code.click() await code.clear() @@ -395,8 +395,8 @@ test("color scheme, code font, and UI font rehydrate after reload", async ({ pag }) .toMatchObject({ appearance: { - font: mono, - uiFont: sans, + mono, + sans, }, }) @@ -415,8 +415,8 @@ test("color scheme, code font, and UI font rehydrate after reload", async ({ pag expect(updatedMono).not.toBe(initialMono) expect(updatedSans).toContain(sans) expect(updatedSans).not.toBe(initialSans) - expect(updatedSettings?.appearance?.font).toBe(mono) - expect(updatedSettings?.appearance?.uiFont).toBe(sans) + expect(updatedSettings?.appearance?.mono).toBe(mono) + expect(updatedSettings?.appearance?.sans).toBe(sans) await closeDialog(page, dialog) await page.reload() @@ -432,8 +432,8 @@ test("color scheme, code font, and UI font rehydrate after reload", async ({ pag }) .toMatchObject({ appearance: { - font: mono, - uiFont: sans, + mono, + sans, }, }) @@ -468,8 +468,8 @@ test("color scheme, code font, and UI font rehydrate after reload", async ({ pag expect(rehydratedMono).not.toBe(initialMono) expect(rehydratedSans).toContain(sans) expect(rehydratedSans).not.toBe(initialSans) - expect(rehydratedSettings?.appearance?.font).toBe(mono) - expect(rehydratedSettings?.appearance?.uiFont).toBe(sans) + expect(rehydratedSettings?.appearance?.mono).toBe(mono) + expect(rehydratedSettings?.appearance?.sans).toBe(sans) }) test("toggling notification agent switch updates localStorage", async ({ page, gotoSession }) => { |
