Skip to content

Commit bc701ea

Browse files
committed
fix formatting
1 parent e17d3d0 commit bc701ea

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/end-to-end/official-site.spec.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,24 +156,26 @@ test("no console errors on card page", async ({ page }) => {
156156

157157
test("form component documentation", async ({ page }) => {
158158
await page.goto(`${BASE}/component.sql?component=form`);
159-
159+
160160
// Find the form that contains radio buttons for component selection
161-
const componentForm = page.locator('form', {
162-
has: page.getByRole('radio', { name: 'Chart' })
161+
const componentForm = page.locator("form", {
162+
has: page.getByRole("radio", { name: "Chart" }),
163163
});
164-
164+
165165
// the form should be visible
166166
await expect(componentForm).toBeVisible();
167167

168168
// Check that "form" is the first and default selected option
169169
const mapRadio = componentForm.getByRole("radio", { name: "Map" });
170170
await expect(mapRadio).toHaveValue("map");
171171
await expect(mapRadio).toBeChecked();
172-
172+
173173
// Select "Chart" option and submit
174174
await componentForm.getByLabel("Chart").click({ force: true });
175175
await componentForm.getByRole("button", { name: "Submit" }).click();
176176

177177
// Verify we're on the chart documentation page
178-
await expect(page.getByRole("heading", { name: /chart/i, level: 1 })).toBeVisible();
178+
await expect(
179+
page.getByRole("heading", { name: /chart/i, level: 1 }),
180+
).toBeVisible();
179181
});

0 commit comments

Comments
 (0)