npm run prettier-fix
This commit is contained in:
parent
226ad251bd
commit
69da70acb7
1 changed files with 13 additions and 9 deletions
|
|
@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Loading…
Reference in a new issue