Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions examples/basic-server-preact/src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ html, body {
code {
font-size: 1em;
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
}
7 changes: 7 additions & 0 deletions examples/basic-server-preact/src/mcp-app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
margin-top: 0.5rem;
}

/* Server time row: flex layout for consistent mask width in E2E tests */
> p {
display: flex;
align-items: baseline;
gap: 0.25em;
}

/* Consistent font for form inputs (inherits from global.css) */
textarea,
input {
Expand Down
6 changes: 6 additions & 0 deletions examples/basic-server-react/src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ html, body {
code {
font-size: 1em;
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
}
7 changes: 7 additions & 0 deletions examples/basic-server-react/src/mcp-app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
margin-top: 0.5rem;
}

/* Server time row: flex layout for consistent mask width in E2E tests */
> p {
display: flex;
align-items: baseline;
gap: 0.25em;
}

/* Consistent font for form inputs (inherits from global.css) */
textarea,
input {
Expand Down
6 changes: 6 additions & 0 deletions examples/basic-server-solid/src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ html, body {
code {
font-size: 1em;
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
}
7 changes: 7 additions & 0 deletions examples/basic-server-solid/src/mcp-app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
margin-top: 0.5rem;
}

/* Server time row: flex layout for consistent mask width in E2E tests */
> p {
display: flex;
align-items: baseline;
gap: 0.25em;
}

/* Consistent font for form inputs (inherits from global.css) */
textarea,
input {
Expand Down
13 changes: 13 additions & 0 deletions examples/basic-server-svelte/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ async function handleOpenLink() {
margin-top: 0.5rem;
}

/* Server time row: flex layout for consistent mask width in E2E tests */
> p {
display: flex;
align-items: baseline;
gap: 0.25em;
}

textarea,
input {
font-family: inherit;
Expand Down Expand Up @@ -196,4 +203,10 @@ async function handleOpenLink() {
font-style: normal;
}
}

/* Server time fills remaining width for consistent E2E screenshot masking */
:global(#server-time) {
flex: 1;
min-width: 0;
}
</style>
6 changes: 6 additions & 0 deletions examples/basic-server-vanillajs/src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ html, body {
code {
font-size: 1em;
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
}
7 changes: 7 additions & 0 deletions examples/basic-server-vanillajs/src/mcp-app.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
margin-top: 0.5rem;
}

/* Server time row: flex layout for consistent mask width in E2E tests */
> p {
display: flex;
align-items: baseline;
gap: 0.25em;
}

/* Consistent font for form inputs (inherits from global.css) */
textarea,
input {
Expand Down
13 changes: 13 additions & 0 deletions examples/basic-server-vue/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ async function handleOpenLink() {
margin-top: 0.5rem;
}

/* Server time row: flex layout for consistent mask width in E2E tests */
> p {
display: flex;
align-items: baseline;
gap: 0.25em;
}

textarea,
input {
font-family: inherit;
Expand Down Expand Up @@ -204,4 +211,10 @@ async function handleOpenLink() {
font-style: normal;
}
}

/* Server time fills remaining width for consistent E2E screenshot masking */
:deep(#server-time) {
flex: 1;
min-width: 0;
}
</style>
6 changes: 6 additions & 0 deletions examples/integration-server/src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ html, body {
code {
font-size: 1em;
}

/* Server time fills remaining width for consistent E2E screenshot masking */
#server-time {
flex: 1;
min-width: 0;
}
7 changes: 7 additions & 0 deletions examples/integration-server/src/mcp-app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
margin-top: 0.5rem;
}

/* Server time row: flex layout for consistent mask width in E2E tests */
> p {
display: flex;
align-items: baseline;
gap: 0.25em;
}

/* Consistent font for form inputs (inherits from global.css) */
textarea,
input {
Expand Down
11 changes: 4 additions & 7 deletions tests/e2e/generate-grid-screenshots.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* integration-server is excluded (it's for E2E testing, same UI as basic-server-react).
*/

import { test, type Page } from "@playwright/test";
import { test, expect, type Page } from "@playwright/test";
import * as path from "path";
import * as fs from "fs";
import sharp from "sharp";
Expand Down Expand Up @@ -95,12 +95,9 @@ async function waitForAppLoad(page: Page) {
*/
async function loadServer(page: Page, serverName: string) {
await page.goto("/");
await page
.locator("select")
.nth(0)
.waitFor({ state: "visible", timeout: 30000 });
await page.waitForTimeout(500);
await page.locator("select").nth(0).selectOption({ label: serverName });
// Wait for servers to connect (select becomes enabled when servers are ready)
await expect(page.locator("select").first()).toBeEnabled({ timeout: 30000 });
await page.locator("select").first().selectOption({ label: serverName });
await page.click('button:has-text("Call Tool")');
await waitForAppLoad(page);
}
Expand Down
Binary file modified tests/e2e/servers.spec.ts-snapshots/basic-preact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/e2e/servers.spec.ts-snapshots/basic-react.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/e2e/servers.spec.ts-snapshots/basic-solid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/e2e/servers.spec.ts-snapshots/basic-svelte.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/e2e/servers.spec.ts-snapshots/basic-vanillajs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/e2e/servers.spec.ts-snapshots/basic-vue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/e2e/servers.spec.ts-snapshots/integration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/e2e/servers.spec.ts-snapshots/system-monitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading