{
  "stats": {
    "suites": 1,
    "tests": 5,
    "passes": 2,
    "pending": 0,
    "failures": 3,
    "start": "2025-11-07T19:24:12.127Z",
    "end": "2025-11-07T19:24:17.703Z",
    "duration": 5576,
    "testsRegistered": 5,
    "passPercent": 40,
    "pendingPercent": 0,
    "other": 0,
    "hasOther": false,
    "skipped": 0,
    "hasSkipped": false
  },
  "results": [
    {
      "uuid": "78afa7d4-92e1-4128-8206-adddcf784798",
      "title": "",
      "fullFile": "cypress\\e2e\\mobile_pwa.cy.js",
      "file": "cypress\\e2e\\mobile_pwa.cy.js",
      "beforeHooks": [],
      "afterHooks": [],
      "tests": [],
      "suites": [
        {
          "uuid": "c022b430-835a-47fd-9ef6-38bb3f7e4fa1",
          "title": "Gestor coletor PWA",
          "fullFile": "",
          "file": "",
          "beforeHooks": [],
          "afterHooks": [],
          "tests": [
            {
              "title": "carrega e testa ping com dispositivo válido",
              "fullTitle": "Gestor coletor PWA carrega e testa ping com dispositivo válido",
              "timedOut": null,
              "duration": 4454,
              "state": "failed",
              "speed": null,
              "pass": false,
              "fail": true,
              "pending": false,
              "context": null,
              "code": "cy.visit('/mobile/');\ncy.contains('Gestor coletor');\ncy.window().then(win => {\n  win.localStorage.setItem('collectorCfg', JSON.stringify({\n    url: 'http://localhost:8001/mobile',\n    deviceKey: 'DEV-ABC-123'\n  }));\n});\ncy.get('#btnTestPing').click();\ncy.get('#scanStatus').should('contain', 'Conexão OK');",
              "err": {
                "message": "AssertionError: Timed out retrying after 4000ms: expected '<span#scanStatus.muted>' to contain 'Conexão OK'",
                "estack": "AssertionError: Timed out retrying after 4000ms: expected '<span#scanStatus.muted>' to contain 'Conexão OK'\n    at Context.eval (webpack://gestoreasy-v3/./cypress/e2e/mobile_pwa.cy.js:9:26)",
                "diff": null
              },
              "uuid": "3a40bba5-eb03-4dd2-9849-9dfacb8fbab8",
              "parentUUID": "c022b430-835a-47fd-9ef6-38bb3f7e4fa1",
              "isHook": false,
              "skipped": false
            },
            {
              "title": "registra item de inventário na fila e sincroniza",
              "fullTitle": "Gestor coletor PWA registra item de inventário na fila e sincroniza",
              "timedOut": null,
              "duration": 256,
              "state": "failed",
              "speed": null,
              "pass": false,
              "fail": true,
              "pending": false,
              "context": null,
              "code": "cy.get('#invProduct').type('SKU-TEST-001');\ncy.get('#invQty').type('2');\ncy.get('#invSubmit').click();\ncy.get('#queueInv').should('not.be.empty');\ncy.get('#btnSync').click();\ncy.get('#syncFeedback').should('contain', 'Sincronizado').or('contain', 'OK');",
              "err": {
                "message": "TypeError: cy.get(...).should(...).or is not a function",
                "estack": "TypeError: cy.get(...).should(...).or is not a function\n    at Context.eval (webpack://gestoreasy-v3/./cypress/e2e/mobile_pwa.cy.js:18:62)",
                "diff": null
              },
              "uuid": "0b827a86-0ead-4499-9afc-a8ddd53f3ce9",
              "parentUUID": "c022b430-835a-47fd-9ef6-38bb3f7e4fa1",
              "isHook": false,
              "skipped": false
            },
            {
              "title": "envia evento de recebimento e valida aceite do backend",
              "fullTitle": "Gestor coletor PWA envia evento de recebimento e valida aceite do backend",
              "timedOut": null,
              "duration": 179,
              "state": "passed",
              "speed": "fast",
              "pass": true,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "cy.request('POST', '/mobile/events', {\n  type: 'receiving',\n  payload: {\n    product: 'SKU-TEST-001',\n    qty: 3,\n    origin: 'DOC-A'\n  }\n}).then(res => {\n  expect([202, 200]).to.include(res.status);\n  expect(res.body).to.have.property('accepted', 1);\n});",
              "err": {},
              "uuid": "aa230c4d-51df-4e25-86ab-70180d41229e",
              "parentUUID": "c022b430-835a-47fd-9ef6-38bb3f7e4fa1",
              "isHook": false,
              "skipped": false
            },
            {
              "title": "envia evento de expedição e valida aceite do backend",
              "fullTitle": "Gestor coletor PWA envia evento de expedição e valida aceite do backend",
              "timedOut": null,
              "duration": 143,
              "state": "passed",
              "speed": "fast",
              "pass": true,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "cy.request('POST', '/mobile/events', {\n  type: 'shipping',\n  payload: {\n    product: 'SKU-TEST-001',\n    qty: 1,\n    dest: 'CLIENT-X'\n  }\n}).then(res => {\n  expect([202, 200]).to.include(res.status);\n  expect(res.body).to.have.property('accepted', 1);\n});",
              "err": {},
              "uuid": "5e3cda52-4c8a-494b-950e-a5a55f7093bb",
              "parentUUID": "c022b430-835a-47fd-9ef6-38bb3f7e4fa1",
              "isHook": false,
              "skipped": false
            },
            {
              "title": "consulta relatório CSV de entradas de inventário",
              "fullTitle": "Gestor coletor PWA consulta relatório CSV de entradas de inventário",
              "timedOut": null,
              "duration": 305,
              "state": "failed",
              "speed": null,
              "pass": false,
              "fail": true,
              "pending": false,
              "context": null,
              "code": "cy.request('/api/wms/inventory/entries/export.csv').then(res => {\n  expect(res.status).to.eq(200);\n  expect(res.headers['content-type']).to.contain('text/csv');\n  expect(res.body).to.be.a('string');\n});",
              "err": {
                "message": "CypressError: `cy.request()` failed on:\n\nhttp://localhost:8000/api/wms/inventory/entries/export.csv\n\nThe response we received from your web server was:\n\n  > 401: Unauthorized\n\nThis was considered a failure because the status code was not `2xx` or `3xx`.\n\nIf you do not want status codes to cause failures pass the option: `failOnStatusCode: false`\n\n-----------------------------------------------------------\n\nThe request we sent was:\n\nMethod: GET\nURL: http://localhost:8000/api/wms/inventory/entries/export.csv\nHeaders: {\n  \"Connection\": \"keep-alive\",\n  \"user-agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/13.17.0 Chrome/118.0.5993.159 Electron/27.3.10 Safari/537.36\",\n  \"accept\": \"*/*\",\n  \"accept-encoding\": \"gzip, deflate\"\n}\n\n-----------------------------------------------------------\n\nThe response we got was:\n\nStatus: 401 - Unauthorized\nHeaders: {\n  \"host\": \"localhost:8000\",\n  \"date\": \"Fri, 07 Nov 2025 19:24:17 GMT\",\n  \"connection\": \"close\",\n  \"x-powered-by\": \"PHP/8.2.29\",\n  \"content-type\": \"application/json\"\n}\nBody: {\n  \"error\": \"Unauthorized\"\n}\n\n\nhttps://on.cypress.io/request",
                "estack": "CypressError: `cy.request()` failed on:\n\nhttp://localhost:8000/api/wms/inventory/entries/export.csv\n\nThe response we received from your web server was:\n\n  > 401: Unauthorized\n\nThis was considered a failure because the status code was not `2xx` or `3xx`.\n\nIf you do not want status codes to cause failures pass the option: `failOnStatusCode: false`\n\n-----------------------------------------------------------\n\nThe request we sent was:\n\nMethod: GET\nURL: http://localhost:8000/api/wms/inventory/entries/export.csv\nHeaders: {\n  \"Connection\": \"keep-alive\",\n  \"user-agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Cypress/13.17.0 Chrome/118.0.5993.159 Electron/27.3.10 Safari/537.36\",\n  \"accept\": \"*/*\",\n  \"accept-encoding\": \"gzip, deflate\"\n}\n\n-----------------------------------------------------------\n\nThe response we got was:\n\nStatus: 401 - Unauthorized\nHeaders: {\n  \"host\": \"localhost:8000\",\n  \"date\": \"Fri, 07 Nov 2025 19:24:17 GMT\",\n  \"connection\": \"close\",\n  \"x-powered-by\": \"PHP/8.2.29\",\n  \"content-type\": \"application/json\"\n}\nBody: {\n  \"error\": \"Unauthorized\"\n}\n\n\nhttps://on.cypress.io/request\n    at <unknown> (http://localhost:8000/__cypress/runner/cypress_runner.js:132876:72)\n    at tryCatcher (http://localhost:8000/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise._settlePromiseFromHandler (http://localhost:8000/__cypress/runner/cypress_runner.js:1542:31)\n    at Promise._settlePromise (http://localhost:8000/__cypress/runner/cypress_runner.js:1599:18)\n    at Promise._settlePromise0 (http://localhost:8000/__cypress/runner/cypress_runner.js:1644:10)\n    at Promise._settlePromises (http://localhost:8000/__cypress/runner/cypress_runner.js:1724:18)\n    at _drainQueueStep (http://localhost:8000/__cypress/runner/cypress_runner.js:2430:12)\n    at _drainQueue (http://localhost:8000/__cypress/runner/cypress_runner.js:2423:9)\n    at Async._drainQueues (http://localhost:8000/__cypress/runner/cypress_runner.js:2439:5)\n    at Async.drainQueues (http://localhost:8000/__cypress/runner/cypress_runner.js:2309:14)\nFrom Your Spec Code:\n    at Context.eval (webpack://gestoreasy-v3/./cypress/e2e/mobile_pwa.cy.js:42:7)",
                "diff": null
              },
              "uuid": "aeca5642-3d14-4cba-b493-6bc260495a8e",
              "parentUUID": "c022b430-835a-47fd-9ef6-38bb3f7e4fa1",
              "isHook": false,
              "skipped": false
            }
          ],
          "suites": [],
          "passes": [
            "aa230c4d-51df-4e25-86ab-70180d41229e",
            "5e3cda52-4c8a-494b-950e-a5a55f7093bb"
          ],
          "failures": [
            "3a40bba5-eb03-4dd2-9849-9dfacb8fbab8",
            "0b827a86-0ead-4499-9afc-a8ddd53f3ce9",
            "aeca5642-3d14-4cba-b493-6bc260495a8e"
          ],
          "pending": [],
          "skipped": [],
          "duration": 5337,
          "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"
    }
  }
}