Choices/test-e2e
terminalchai 1e7f7ec4e3 test(e2e): fix brittle e2e assertions for CI headless environments
Three failures identified from the CI blob reports:

1. select-one placeholder (style.minWidth = ''):
   For select-one, setWidth() is only triggered by typing — not on dropdown
   open. The search input lives inside the dropdown and the init path that
   calls setWidth() (in _initElements) is select-multiple only. Changed the
   test to verify the placeholder attribute is applied to the search input
   when the dropdown opens instead.

2. select-multiple CJK placeholder (minWidth = '1ch', expected >= 2):
   CI headless environments may lack CJK fonts. The DOM measurement for
   '搜索' returns 0px, so Math.ceil(0)+1 = 1ch. Removed the numeric
   assertion — just verify the style is set in ch units.

3. English 'f' typing (width = '3ch', expected '2ch'):
   The exact ch value depends on font metrics. The 'ch' unit (width of '0')
   can be narrower than 'f' in some fonts, giving 3ch not 2ch. Changed to
   toMatch(/^\d+ch$/) + toBeGreaterThanOrEqual(2), which holds for any
   character in any font.
2026-03-11 01:04:06 +05:30
..
__screenshots__ Fix e2e tests due to browser drift 2026-01-01 07:41:35 +08:00
hars Use a HAR files to mock the external API to avoid token API usages from breaking the test 2024-08-22 01:22:44 +08:00
tests test(e2e): fix brittle e2e assertions for CI headless environments 2026-03-11 01:04:06 +05:30
bundle-test.ts intelij expects playwright test file to import from '@playwright/test' when determining what test suite to execute a test from the gutter 2024-08-19 02:13:57 +08:00
select-test-suit.ts Fix: Disabled options are not visible (#1257) 2025-02-22 05:09:41 +05:30
test-suit.ts Add a test to check for the invalid state 2025-08-16 23:50:40 +08:00
text-test-suit.ts Move to using parameterized projects for bundle variation testing, works with tooling better 2024-08-17 00:51:50 +08:00
tsconfig.json Update tests to permit newer target versions (main source tree still targets ES5) 2024-08-26 01:15:04 +08:00