aloof-jordan-11481
07/17/2022, 1:07 PMquasar dev -m pwa
and let Cypress use it. Some of my tests always fail if I start the server with npx http-server
. The failing tests validate whether certain API calls are made so nothing special really.
let notoSansCount = 0;
cy.intercept('**/NotoSans-Regular*.TTF', (req) => {
notoSansCount += 1;
req.continue();
}).as('notoSansRegular');
cy.visit('/');
// this call is never made if I run it in http-server
// this works reliably with quasar dev
cy.wait('@notoSansRegular');
cy.dataCy('language-selection').then(() =>
expect(notoSansCount).to.equal(1)
);