Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(reporter): add another surrogate pair test case (#33428)

Simon Knott26a7dd4dd468
diff --git a/tests/playwright-test/fit-to-width.spec.ts b/tests/playwright-test/fit-to-width.spec.ts
index 94e73cb381..c4f6dd3200 100644
--- a/tests/playwright-test/fit-to-width.spec.ts
+++ b/tests/playwright-test/fit-to-width.spec.ts
@@ -29,4 +29,5 @@ test('surrogate pairs', () => {
expect(fitToWidth('πŸš„πŸš„', 2)).toBe('…');
expect(fitToWidth('πŸš„πŸš„', 3)).toBe('β€¦πŸš„');
expect(fitToWidth('πŸš„πŸš„', 4)).toBe('πŸš„πŸš„');
+ expect(fitToWidth('πŸ§‘β€πŸ§‘β€πŸ§’πŸ§‘β€πŸ§‘β€πŸ§’πŸ§‘β€πŸ§‘β€πŸ§’', 4)).toBe('β€¦πŸ§‘β€πŸ§‘β€πŸ§’');
});