From df6bcd8965d4474d235c9de47106ef521c9c484c Mon Sep 17 00:00:00 2001 From: dnlklmn Date: Wed, 10 Jan 2024 10:21:15 +0100 Subject: [PATCH] Fix tests --- src/components/DropdownList/DropdownListItem.svelte | 2 +- src/components/NodeId.svelte | 2 +- tests/e2e/theme.spec.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DropdownList/DropdownListItem.svelte b/src/components/DropdownList/DropdownListItem.svelte index 377c2dc4be..c8d0c76ee1 100644 --- a/src/components/DropdownList/DropdownListItem.svelte +++ b/src/components/DropdownList/DropdownListItem.svelte @@ -10,7 +10,7 @@ display: flex; align-items: center; flex-direction: row; - gap: 0.5rem; + gap: 0.375rem; padding: 1.25rem 0.625rem; white-space: nowrap; border-radius: var(--border-radius-tiny); diff --git a/src/components/NodeId.svelte b/src/components/NodeId.svelte index 4be3ef387e..b3635d1733 100644 --- a/src/components/NodeId.svelte +++ b/src/components/NodeId.svelte @@ -15,7 +15,7 @@ display: flex; align-items: center; justify-content: center; - gap: 0.5rem; + gap: 0.375rem; height: 1rem; font-family: var(--font-family-monospace); font-weight: var(--font-weight-semibold); diff --git a/tests/e2e/theme.spec.ts b/tests/e2e/theme.spec.ts index 04993b0fdb..1ad552362b 100644 --- a/tests/e2e/theme.spec.ts +++ b/tests/e2e/theme.spec.ts @@ -68,7 +68,7 @@ test("change code font", async ({ page }) => { await page.getByRole("button", { name: "Settings" }).first().click(); await page.getByText("System").click(); - await expect(page.getByText("System")).toHaveClass(/gray-white/); + await expect(page.getByText("System")).toHaveClass(/selected/); await expect(page.locator("html")).toHaveAttribute("data-codefont", "system"); await page.getByText("JetBrains Mono").click();