You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix tests broken by Phoenix 1.8 and LiveView 1.1 upgrade
Phoenix 1.8 renders boolean HTML attributes as attr="" instead of
attr="attr". lazy_html (new LiveView 1.1 test dep) enforces stricter
CSS selector parsing than Floki. Changes:
- Replace disabled="disabled" / checked="checked" assertions with
disabled="" / checked="" throughout
- Replace [attr='attr'] CSS selectors with presence-only [attr] selectors
- Fix malformed attribute selectors missing closing quotes that Floki
accepted silently but lazy_html rejects (e.g. [id='...id])
- Fix comma-separated attributes in single brackets to chained brackets
(e.g. [a='x', b='y'] -> [a='x'][b='y'])
- Replace tbody:first-child selectors (now semantically enforced by
lazy_html) with tbody:first-of-type or scoped ID selectors
- Replace selected="selected" option assertions with selected=""
- Fix save_is_disabled? helper to use List.keymember? instead of
checking for {"disabled", "disabled"} tuple
- Replace ErrorViewTest with tests for ErrorHTML and ErrorJSON,
including integration tests that exercise the full request cycle
0 commit comments