Skip to content

Commit 5cc979c

Browse files
committed
test(ui): capture complete fallback icon proof
1 parent 2113c63 commit 5cc979c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ui/src/e2e/model-providers.e2e.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,13 @@ describeControlUiE2e("Control UI Model Providers mocked Gateway E2E", () => {
184184
});
185185

186186
it("renders one complete uppercased grapheme in custom provider fallback icons", async () => {
187+
const bottomProviderId = "e\u0301-proxy";
187188
const cases = [
188189
{ id: "ß-provider", expected: "S" },
189190
{ id: "🧭-proxy", expected: "🧭" },
190191
{ id: "🇺🇸-proxy", expected: "🇺🇸" },
191192
{ id: "👩‍💻-proxy", expected: "👩‍💻" },
192-
{ id: "e\u0301-proxy", expected: "E\u0301" },
193+
{ id: bottomProviderId, expected: "E\u0301" },
193194
];
194195
const context = await browser.newContext({
195196
locale: "en-US",
@@ -229,6 +230,11 @@ describeControlUiE2e("Control UI Model Providers mocked Gateway E2E", () => {
229230
path: path.join(artifactDir, "03-unicode-fallback-icons.png"),
230231
fullPage: true,
231232
});
233+
await page.locator(`[data-provider-id="${bottomProviderId}"]`).scrollIntoViewIfNeeded();
234+
await page.screenshot({
235+
path: path.join(artifactDir, "04-unicode-fallback-icons-bottom.png"),
236+
fullPage: true,
237+
});
232238
}
233239
} finally {
234240
await context.close();

0 commit comments

Comments
 (0)