{
  "stats": {
    "suites": 1,
    "tests": 3,
    "passes": 0,
    "pending": 0,
    "failures": 3,
    "start": "2025-11-08T09:20:24.947Z",
    "end": "2025-11-08T09:20:53.122Z",
    "duration": 28175,
    "testsRegistered": 3,
    "passPercent": 0,
    "pendingPercent": 0,
    "other": 0,
    "hasOther": false,
    "skipped": 0,
    "hasSkipped": false
  },
  "results": [
    {
      "uuid": "9e640030-9c76-46d0-89ab-02b24f8992f7",
      "title": "",
      "fullFile": "cypress\\e2e\\relatorios_compras_abc.cy.js",
      "file": "cypress\\e2e\\relatorios_compras_abc.cy.js",
      "beforeHooks": [],
      "afterHooks": [],
      "tests": [],
      "suites": [
        {
          "uuid": "985213b2-360a-42fe-ab6f-6d1d8ac2f89c",
          "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": 11317,
              "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', {\n  timeout: 10000\n});\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 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait",
                "estack": "CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait\n    at cypressErr (http://localhost:8001/__cypress/runner/cypress_runner.js:76065:18)\n    at Object.errByPath (http://localhost:8001/__cypress/runner/cypress_runner.js:76119:10)\n    at checkForXhr (http://localhost:8001/__cypress/runner/cypress_runner.js:135342:84)\n    at <unknown> (http://localhost:8001/__cypress/runner/cypress_runner.js:135368:28)\n    at tryCatcher (http://localhost:8001/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise.attempt.Promise.try (http://localhost:8001/__cypress/runner/cypress_runner.js:4338:29)\n    at whenStable (http://localhost:8001/__cypress/runner/cypress_runner.js:143744:68)\n    at <unknown> (http://localhost:8001/__cypress/runner/cypress_runner.js:143685:14)\n    at tryCatcher (http://localhost:8001/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise._settlePromiseFromHandler (http://localhost:8001/__cypress/runner/cypress_runner.js:1542:31)\n    at Promise._settlePromise (http://localhost:8001/__cypress/runner/cypress_runner.js:1599:18)\n    at Promise._settlePromise0 (http://localhost:8001/__cypress/runner/cypress_runner.js:1644:10)\n    at Promise._settlePromises (http://localhost:8001/__cypress/runner/cypress_runner.js:1724:18)\n    at Promise._fulfill (http://localhost:8001/__cypress/runner/cypress_runner.js:1668:18)\n    at <unknown> (http://localhost:8001/__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": "3e965760-7a63-41f3-a60c-aff5482e4a36",
              "parentUUID": "985213b2-360a-42fe-ab6f-6d1d8ac2f89c",
              "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": 5682,
              "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://localhost:8001/__cypress/runner/cypress_runner.js:76065:18)\n    at Object.errByPath (http://localhost:8001/__cypress/runner/cypress_runner.js:76119:10)\n    at checkForXhr (http://localhost:8001/__cypress/runner/cypress_runner.js:135342:84)\n    at <unknown> (http://localhost:8001/__cypress/runner/cypress_runner.js:135368:28)\n    at tryCatcher (http://localhost:8001/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise.attempt.Promise.try (http://localhost:8001/__cypress/runner/cypress_runner.js:4338:29)\n    at whenStable (http://localhost:8001/__cypress/runner/cypress_runner.js:143744:68)\n    at <unknown> (http://localhost:8001/__cypress/runner/cypress_runner.js:143685:14)\n    at tryCatcher (http://localhost:8001/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise._settlePromiseFromHandler (http://localhost:8001/__cypress/runner/cypress_runner.js:1542:31)\n    at Promise._settlePromise (http://localhost:8001/__cypress/runner/cypress_runner.js:1599:18)\n    at Promise._settlePromise0 (http://localhost:8001/__cypress/runner/cypress_runner.js:1644:10)\n    at Promise._settlePromises (http://localhost:8001/__cypress/runner/cypress_runner.js:1724:18)\n    at Promise._fulfill (http://localhost:8001/__cypress/runner/cypress_runner.js:1668:18)\n    at <unknown> (http://localhost:8001/__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": "d187da33-1ae6-4837-acbe-5bf5d54c9f8d",
              "parentUUID": "985213b2-360a-42fe-ab6f-6d1d8ac2f89c",
              "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": 11012,
              "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', {\n  timeout: 10000\n});\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 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait",
                "estack": "CypressError: Timed out retrying after 10000ms: `cy.wait()` timed out waiting `10000ms` for the 1st request to the route: `abc`. No request ever occurred.\n\nhttps://on.cypress.io/wait\n    at cypressErr (http://localhost:8001/__cypress/runner/cypress_runner.js:76065:18)\n    at Object.errByPath (http://localhost:8001/__cypress/runner/cypress_runner.js:76119:10)\n    at checkForXhr (http://localhost:8001/__cypress/runner/cypress_runner.js:135342:84)\n    at <unknown> (http://localhost:8001/__cypress/runner/cypress_runner.js:135368:28)\n    at tryCatcher (http://localhost:8001/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise.attempt.Promise.try (http://localhost:8001/__cypress/runner/cypress_runner.js:4338:29)\n    at whenStable (http://localhost:8001/__cypress/runner/cypress_runner.js:143744:68)\n    at <unknown> (http://localhost:8001/__cypress/runner/cypress_runner.js:143685:14)\n    at tryCatcher (http://localhost:8001/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise._settlePromiseFromHandler (http://localhost:8001/__cypress/runner/cypress_runner.js:1542:31)\n    at Promise._settlePromise (http://localhost:8001/__cypress/runner/cypress_runner.js:1599:18)\n    at Promise._settlePromise0 (http://localhost:8001/__cypress/runner/cypress_runner.js:1644:10)\n    at Promise._settlePromises (http://localhost:8001/__cypress/runner/cypress_runner.js:1724:18)\n    at Promise._fulfill (http://localhost:8001/__cypress/runner/cypress_runner.js:1668:18)\n    at <unknown> (http://localhost:8001/__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": "42186514-080f-45ac-b50b-9ddcde2e0a1c",
              "parentUUID": "985213b2-360a-42fe-ab6f-6d1d8ac2f89c",
              "isHook": false,
              "skipped": false
            }
          ],
          "suites": [],
          "passes": [],
          "failures": [
            "3e965760-7a63-41f3-a60c-aff5482e4a36",
            "d187da33-1ae6-4837-acbe-5bf5d54c9f8d",
            "42186514-080f-45ac-b50b-9ddcde2e0a1c"
          ],
          "pending": [],
          "skipped": [],
          "duration": 28011,
          "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"
    }
  }
}