Several tests (primarily style-spec.js, group-spec.js, headers-spec.js) hit the live respec.org/w3c/groups/ API, making them fragile when groups are renamed or removed. The autowebplatform BG was recently removed, breaking the BG-FINAL style test on all branches.
Proposed fix: Pre-seed the browser Cache API with mock group responses via a preProcess hook in SpecHelper.js, so fetchAndCache finds cached data and never hits the network. ~65 lines of new test infrastructure, ~1 line change per affected test. Same pattern as localBiblio for bibliography.
Scope: ~50-60 test cases across 5 test files.
Found while investigating #5228.
Several tests (primarily
style-spec.js,group-spec.js,headers-spec.js) hit the liverespec.org/w3c/groups/API, making them fragile when groups are renamed or removed. TheautowebplatformBG was recently removed, breaking theBG-FINALstyle test on all branches.Proposed fix: Pre-seed the browser Cache API with mock group responses via a
preProcesshook inSpecHelper.js, sofetchAndCachefinds cached data and never hits the network. ~65 lines of new test infrastructure, ~1 line change per affected test. Same pattern aslocalBibliofor bibliography.Scope: ~50-60 test cases across 5 test files.
Found while investigating #5228.