npm run prettier-fix

This commit is contained in:
Marc Abramowitz 2025-05-27 18:35:22 -07:00
commit 69da70acb7

View file

@ -1,22 +1,26 @@
import { test, expect } from '@playwright/test'; import { test, expect } from "@playwright/test";
// Adjust the URL if your dev server runs on a different port // Adjust the URL if your dev server runs on a different port
const APP_URL = 'http://localhost:6274/'; const APP_URL = "http://localhost:6274/";
test.describe('Transport Type Dropdown', () => { test.describe("Transport Type Dropdown", () => {
test('should have options for STDIO, SSE, and Streamable HTTP', async ({ page }) => { test("should have options for STDIO, SSE, and Streamable HTTP", async ({
page,
}) => {
await page.goto(APP_URL); await page.goto(APP_URL);
// Wait for the Transport Type dropdown to be visible // Wait for the Transport Type dropdown to be visible
const selectTrigger = page.getByLabel('Transport Type'); const selectTrigger = page.getByLabel("Transport Type");
await expect(selectTrigger).toBeVisible(); await expect(selectTrigger).toBeVisible();
// Open the dropdown // Open the dropdown
await selectTrigger.click(); await selectTrigger.click();
// Check for the three options // Check for the three options
await expect(page.getByRole('option', { name: 'STDIO' })).toBeVisible(); await expect(page.getByRole("option", { name: "STDIO" })).toBeVisible();
await expect(page.getByRole('option', { name: 'SSE' })).toBeVisible(); await expect(page.getByRole("option", { name: "SSE" })).toBeVisible();
await expect(page.getByRole('option', { name: 'Streamable HTTP' })).toBeVisible(); await expect(
page.getByRole("option", { name: "Streamable HTTP" }),
).toBeVisible();
}); });
}); });