{
  "stats": {
    "suites": 1,
    "tests": 3,
    "passes": 0,
    "pending": 0,
    "failures": 3,
    "start": "2025-11-08T08:52:01.612Z",
    "end": "2025-11-08T08:52:22.328Z",
    "duration": 20716,
    "testsRegistered": 3,
    "passPercent": 0,
    "pendingPercent": 0,
    "other": 0,
    "hasOther": false,
    "skipped": 0,
    "hasSkipped": false
  },
  "results": [
    {
      "uuid": "9dd9d8d5-c0c7-40d2-9772-66b3b5d75737",
      "title": "",
      "fullFile": "cypress\\e2e\\relatorios_compras_abc.cy.js",
      "file": "cypress\\e2e\\relatorios_compras_abc.cy.js",
      "beforeHooks": [],
      "afterHooks": [],
      "tests": [],
      "suites": [
        {
          "uuid": "cfb5b107-532e-48e2-9e12-96db79b9c669",
          "title": "Relatórios de Compras - Curva ABC",
          "fullFile": "",
          "file": "",
          "beforeHooks": [],
          "afterHooks": [],
          "tests": [
            {
              "title": "Carrega a página e exibe controles e tabela ABC",
              "fullTitle": "Relatórios de Compras - Curva ABC Carrega a página e exibe controles e tabela ABC",
              "timedOut": null,
              "duration": 6114,
              "state": "failed",
              "speed": null,
              "pass": false,
              "fail": true,
              "pending": false,
              "context": null,
              "code": "cy.intercept('GET', '/api/compras/relatorios/por-fornecedor*', stubFornecedor).as('forn');\ncy.intercept('GET', '/api/compras/relatorios/ordens-por-status*', stubStatus).as('status');\ncy.intercept('GET', '/api/compras/relatorios/itens-top*', stubItensTop).as('top');\ncy.intercept('GET', '/api/compras/relatorios/abc*', stubAbcItems).as('abc');\ncy.visit(pageUrl);\ncy.wait('@abc');\ncy.get('#f-start').should('exist');\ncy.get('#f-end').should('exist');\ncy.get('#f-limit').should('exist');\ncy.get('#btn-aplicar').should('exist');\ncy.get('#abc-metric').should('exist');\ncy.get('#abc-a-pct').should('exist').and('have.value', '80');\ncy.get('#abc-b-pct').should('exist').and('have.value', '15');\ncy.get('#abc-c-pct').should('exist').and('have.value', '5');\ncy.get('#abc-threshold-label').should('contain.text', 'A=80%').and('contain.text', 'B=15%').and('contain.text', 'C=5%');\ncy.get('#tbl-abc tbody tr').should('have.length.greaterThan', 0);\ncy.get('#tbl-abc tbody tr').first().contains('Cabo HDMI');",
              "err": {
                "message": "CypressError: Timed out retrying after 5000ms: `cy.wait()` timed out waiting `5000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait",
                "estack": "CypressError: Timed out retrying after 5000ms: `cy.wait()` timed out waiting `5000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait\n    at cypressErr (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:76065:18)\n    at Object.errByPath (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:76119:10)\n    at checkForXhr (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:135342:84)\n    at <unknown> (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:135368:28)\n    at tryCatcher (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise.attempt.Promise.try (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:4338:29)\n    at whenStable (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:143744:68)\n    at <unknown> (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:143685:14)\n    at tryCatcher (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise._settlePromiseFromHandler (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1542:31)\n    at Promise._settlePromise (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1599:18)\n    at Promise._settlePromise0 (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1644:10)\n    at Promise._settlePromises (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1724:18)\n    at Promise._fulfill (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1668:18)\n    at <unknown> (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:5473:46)\nFrom Your Spec Code:\n    at Context.eval (webpack://gestoreasy-v3/./cypress/e2e/relatorios_compras_abc.cy.js:20:7)",
                "diff": null
              },
              "uuid": "f40471b4-afa5-431d-89dc-410c4fd0a781",
              "parentUUID": "cfb5b107-532e-48e2-9e12-96db79b9c669",
              "isHook": false,
              "skipped": false
            },
            {
              "title": "Recalcula ABC ao alterar thresholds e envia na API",
              "fullTitle": "Relatórios de Compras - Curva ABC Recalcula ABC ao alterar thresholds e envia na API",
              "timedOut": null,
              "duration": 6096,
              "state": "failed",
              "speed": null,
              "pass": false,
              "fail": true,
              "pending": false,
              "context": null,
              "code": "cy.intercept('GET', '/api/compras/relatorios/por-fornecedor*', stubFornecedor);\ncy.intercept('GET', '/api/compras/relatorios/ordens-por-status*', stubStatus);\ncy.intercept('GET', '/api/compras/relatorios/itens-top*', stubItensTop);\ncy.intercept('GET', /\\/api\\/compras\\/relatorios\\/abc.*/, stubAbcItems).as('abc');\ncy.visit(pageUrl);\ncy.wait('@abc');\ncy.get('#abc-a-pct').clear().type('90');\ncy.get('#abc-b-pct').clear().type('5');\ncy.get('#abc-c-pct').clear().type('5');\ncy.wait('@abc').then(interception => {\n  const url = interception.request.url;\n  expect(url).to.include('a_pct=0.9');\n  expect(url).to.include('b_pct=0.05');\n});\ncy.get('#abc-threshold-label').should('contain.text', 'A=90%').and('contain.text', 'B=5%').and('contain.text', 'C=5%');",
              "err": {
                "message": "CypressError: Timed out retrying after 5000ms: `cy.wait()` timed out waiting `5000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait",
                "estack": "CypressError: Timed out retrying after 5000ms: `cy.wait()` timed out waiting `5000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait\n    at cypressErr (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:76065:18)\n    at Object.errByPath (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:76119:10)\n    at checkForXhr (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:135342:84)\n    at <unknown> (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:135368:28)\n    at tryCatcher (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise.attempt.Promise.try (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:4338:29)\n    at whenStable (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:143744:68)\n    at <unknown> (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:143685:14)\n    at tryCatcher (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise._settlePromiseFromHandler (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1542:31)\n    at Promise._settlePromise (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1599:18)\n    at Promise._settlePromise0 (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1644:10)\n    at Promise._settlePromises (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1724:18)\n    at Promise._fulfill (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1668:18)\n    at <unknown> (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:5473:46)\nFrom Your Spec Code:\n    at Context.eval (webpack://gestoreasy-v3/./cypress/e2e/relatorios_compras_abc.cy.js:43:7)",
                "diff": null
              },
              "uuid": "c26ef27d-3cbc-4b17-8fee-82ab57ae88e8",
              "parentUUID": "cfb5b107-532e-48e2-9e12-96db79b9c669",
              "isHook": false,
              "skipped": false
            },
            {
              "title": "Exporta CSV e PDF da ABC sem alertas",
              "fullTitle": "Relatórios de Compras - Curva ABC Exporta CSV e PDF da ABC sem alertas",
              "timedOut": null,
              "duration": 6241,
              "state": "failed",
              "speed": null,
              "pass": false,
              "fail": true,
              "pending": false,
              "context": null,
              "code": "cy.intercept('GET', '/api/compras/relatorios/por-fornecedor*', stubFornecedor);\ncy.intercept('GET', '/api/compras/relatorios/ordens-por-status*', stubStatus);\ncy.intercept('GET', '/api/compras/relatorios/itens-top*', stubItensTop);\ncy.intercept('GET', '/api/compras/relatorios/abc*', stubAbcItems).as('abc');\ncy.visit(pageUrl);\ncy.wait('@abc');\ncy.window().then(win => {\n  cy.stub(win.URL, 'createObjectURL').callsFake(() => 'blob:stub');\n  const openStub = cy.stub(win, 'open').callsFake(() => ({\n    document: {\n      write() {},\n      close() {}\n    },\n    focus() {},\n    print() {}\n  }));\n  cy.get('#btn-export-abc-csv').click();\n  cy.wrap(win.URL.createObjectURL).should('have.been.called');\n  cy.get('#btn-export-abc-pdf').click();\n  cy.wrap(openStub).should('have.been.called');\n});",
              "err": {
                "message": "CypressError: Timed out retrying after 5000ms: `cy.wait()` timed out waiting `5000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait",
                "estack": "CypressError: Timed out retrying after 5000ms: `cy.wait()` timed out waiting `5000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait\n    at cypressErr (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:76065:18)\n    at Object.errByPath (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:76119:10)\n    at checkForXhr (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:135342:84)\n    at <unknown> (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:135368:28)\n    at tryCatcher (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise.attempt.Promise.try (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:4338:29)\n    at whenStable (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:143744:68)\n    at <unknown> (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:143685:14)\n    at tryCatcher (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise._settlePromiseFromHandler (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1542:31)\n    at Promise._settlePromise (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1599:18)\n    at Promise._settlePromise0 (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1644:10)\n    at Promise._settlePromises (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1724:18)\n    at Promise._fulfill (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:1668:18)\n    at <unknown> (http://127.0.0.1:8002/__cypress/runner/cypress_runner.js:5473:46)\nFrom Your Spec Code:\n    at Context.eval (webpack://gestoreasy-v3/./cypress/e2e/relatorios_compras_abc.cy.js:63:7)",
                "diff": null
              },
              "uuid": "07b0bde6-912d-4386-ba35-8b413779b014",
              "parentUUID": "cfb5b107-532e-48e2-9e12-96db79b9c669",
              "isHook": false,
              "skipped": false
            }
          ],
          "suites": [],
          "passes": [],
          "failures": [
            "f40471b4-afa5-431d-89dc-410c4fd0a781",
            "c26ef27d-3cbc-4b17-8fee-82ab57ae88e8",
            "07b0bde6-912d-4386-ba35-8b413779b014"
          ],
          "pending": [],
          "skipped": [],
          "duration": 18451,
          "root": false,
          "rootEmpty": false,
          "_timeout": 2000
        }
      ],
      "passes": [],
      "failures": [],
      "pending": [],
      "skipped": [],
      "duration": 0,
      "root": true,
      "rootEmpty": true,
      "_timeout": 2000
    }
  ],
  "meta": {
    "mocha": {
      "version": "7.0.1"
    },
    "mochawesome": {
      "options": {
        "quiet": true,
        "reportFilename": "mochawesome",
        "saveHtml": true,
        "saveJson": true,
        "consoleReporter": "spec",
        "useInlineDiffs": false,
        "code": true
      },
      "version": "7.1.4"
    },
    "marge": {
      "options": {
        "id": "default",
        "reportDir": "cypress/reports/mochawesome",
        "overwrite": false,
        "html": true,
        "json": true,
        "quiet": true
      },
      "version": "6.3.2"
    }
  }
}