Hi, I am struggling to get my CI pipeline working ...
# help
a
Hi, I am struggling to get my CI pipeline working with cypress. I am using Quasar and hava a PWA project. The Cypress tests all succeed if I start a local dev server with
quasar 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.
Copy code
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)
    );
3 Views