@davoodmehraban89 / Factor-easy / commits / 84e840d
Fork 0

سامانه صدور فاکتور و حسابداری

test(pages): compare bundle filenames independent of _site URL prefix

davoodmehraban89 committed Oct 13, 2026 at 01:32 UTC 84e840dd8fb99a83ccda109a81c48428a3cf79e1
1 file changed +1 -1
scripts/pages-artifact.spec.js
+1 -1
@@ -116,7 +116,7 @@ test('Built Pages loads exactly three ordered core groups instead of 38 blocking
116 expect(info.blockingFailed).toBe(false);
117 expect(info.loadedCore).toBe('function');
118 expect(info.loadedAccounting).toBe(true);
119 - expect(requests).toEqual(names.map(x=>'/js/finora-pages-'+x+'.js'));
119 + expect(requests.map(x=>x.split('/').at(-1))).toEqual(names.map(x=>'finora-pages-'+x+'.js'));
120 const html=await page.content();
121 for(const legacy of ['js/admin.js','js/patches.js','js/accounting-foundation.js']){
122 expect(html).not.toContain('<script src="'+legacy);