Choices/test-e2e/tests
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
..
demo-page.spec.ts Update the demo-page test (as we start from the active choice now) 2025-08-23 14:53:03 +02:00
select-multiple-performance.spec.ts Add performance test for setChoices 2025-02-23 05:31:15 +08:00
select-multiple.spec.ts test(e2e): fix brittle e2e assertions for CI headless environments 2026-03-11 01:04:06 +05:30
select-one.spec.ts test(e2e): fix brittle e2e assertions for CI headless environments 2026-03-11 01:04:06 +05:30
text.spec.ts Add e2e tests for input-limit being respected 2024-12-22 07:20:11 +08:00