Multiple failures caused by the SWR background fetch pattern and collapsed UI sections: 1. IDB settle wait: add waitForFunction that polls IndexedDB for tmp_sort_1 on the event record. tmp_sort_1 is only written by _process_generic_props, so its presence signals the background API fetch has completed and no further liveQuery re-fires will overwrite form inputs the test is about to fill. 2. JSON.parse for _json fields: update_ae_obj_v3 auto-serializes any key ending in _json to a JSON string before sending the PATCH. Tests now parse location_address_json, attend_json, and contact_li_json from the captured body before asserting field values. 3. Contact 2 section: collapsed by default when contact_2.full_name and email are null. Collapsed state renders type='hidden' inputs which Playwright's fill() rejects. Add click on the 'Contact 2 (Optional)' toggle before filling those fields. 4. Admin Options section: same collapse pattern. Add click on the 'Admin Options' toggle before filling status/sort/group/hide fields. 5. Increase suite timeout to 60 s: open_edit_form awaits real lookup API responses (pass_through_lookups=true) which can take 20-25 s on slow network, leaving no margin at the default 30 s limit.
47 KiB
47 KiB