{
  "stats": {
    "suites": 1,
    "tests": 1,
    "passes": 0,
    "pending": 0,
    "failures": 1,
    "start": "2025-11-08T20:15:36.216Z",
    "end": "2025-11-08T20:15:37.113Z",
    "duration": 897,
    "testsRegistered": 10,
    "passPercent": 0,
    "pendingPercent": 0,
    "other": 0,
    "hasOther": false,
    "skipped": 9,
    "hasSkipped": true
  },
  "results": [
    {
      "uuid": "e70ae58d-a58c-40d5-b124-1bfcb871b57d",
      "title": "",
      "fullFile": "cypress\\e2e\\financeiro_receber.cy.js",
      "file": "cypress\\e2e\\financeiro_receber.cy.js",
      "beforeHooks": [],
      "afterHooks": [],
      "tests": [],
      "suites": [
        {
          "uuid": "153855cf-fe47-4d1d-9955-466fa0dda41a",
          "title": "Financeiro > Contas a Receber",
          "fullFile": "",
          "file": "",
          "beforeHooks": [],
          "afterHooks": [],
          "tests": [
            {
              "title": "carrega lista e exibe totais e badges",
              "fullTitle": "Financeiro > Contas a Receber carrega lista e exibe totais e badges",
              "timedOut": null,
              "duration": 807,
              "state": "failed",
              "speed": null,
              "pass": false,
              "fail": true,
              "pending": false,
              "context": null,
              "code": "cy.get('#contasTableBody tr').should('have.length.greaterThan', 0);\ncy.get('#totalValor').should('contain.text', 'Valor');\ncy.get('#totalPendentes').should('have.class', 'badge').and('have.class', 'badge-warning');\ncy.get('#totalVencidos').should('have.class', 'badge').and('have.class', 'badge-danger');\ncy.get('#totalRecebidosStatus').should('have.class', 'badge').and('have.class', 'badge-success');",
              "err": {
                "message": "CypressError: `cy.visit()` failed trying to load:\n\nhttp://localhost:8000/financeiro/receber\n\nWe attempted to make an http request to this URL but the request failed without a response.\n\nWe received this error at the network level:\n\n  > Error: connect ECONNREFUSED ::1:8000\n\nCommon situations why this would fail:\n  - you don't have internet access\n  - you forgot to run / boot your web server\n  - your web server isn't accessible\n  - you have weird network configuration settings on your computer\n\nBecause this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `Financeiro > Contas a Receber`",
                "estack": "CypressError: `cy.visit()` failed trying to load:\n\nhttp://localhost:8000/financeiro/receber\n\nWe attempted to make an http request to this URL but the request failed without a response.\n\nWe received this error at the network level:\n\n    at <unknown> (  > Error: connect ECONNREFUSED ::1:8000)\n\nCommon situations why this would fail:\n- you don't have internet access\n- you forgot to run / boot your web server\n- your web server isn't accessible\n- you have weird network configuration settings on your computer\n    at <unknown> (http://localhost:8002/__cypress/runner/cypress_runner.js:131607:74)\n    at visitFailedByErr (http://localhost:8002/__cypress/runner/cypress_runner.js:131006:12)\n    at <unknown> (http://localhost:8002/__cypress/runner/cypress_runner.js:131606:11)\n    at tryCatcher (http://localhost:8002/__cypress/runner/cypress_runner.js:1830:23)\n    at Promise._settlePromiseFromHandler (http://localhost:8002/__cypress/runner/cypress_runner.js:1542:31)\n    at Promise._settlePromise (http://localhost:8002/__cypress/runner/cypress_runner.js:1599:18)\n    at Promise._settlePromise0 (http://localhost:8002/__cypress/runner/cypress_runner.js:1644:10)\n    at Promise._settlePromises (http://localhost:8002/__cypress/runner/cypress_runner.js:1720:18)\n    at _drainQueueStep (http://localhost:8002/__cypress/runner/cypress_runner.js:2430:12)\n    at _drainQueue (http://localhost:8002/__cypress/runner/cypress_runner.js:2423:9)\n    at Async._drainQueues (http://localhost:8002/__cypress/runner/cypress_runner.js:2439:5)\n    at Async.drainQueues (http://localhost:8002/__cypress/runner/cypress_runner.js:2309:14)\nFrom Your Spec Code:\n    at Context.eval (webpack://gestoreasy-v3/./cypress/e2e/financeiro_receber.cy.js:48:7)\n\nFrom Node.js Internals:\n    at <unknown> (      Error: connect ECONNREFUSED ::1:8000)\n    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)",
                "diff": null
              },
              "uuid": "4e445975-4d4c-400e-864c-da3fefcbc345",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": false
            },
            {
              "title": "filtra por status e mostra loading ao buscar",
              "fullTitle": "Financeiro > Contas a Receber filtra por status e mostra loading ao buscar",
              "timedOut": null,
              "duration": 0,
              "state": "skipped",
              "speed": null,
              "pass": false,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "cy.get('#statusFilter').select('pendente');\ncy.get('#btnSearch').click();\ncy.get('#contasTableBody').contains('Carregando contas...');\ncy.wait('@getReceber');\ncy.get('#contasTableBody tr').should('have.length.greaterThan', 0);",
              "err": {},
              "uuid": "76afa1a3-5880-47cd-9ffb-bb3b367e15f1",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": true
            },
            {
              "title": "abre modal Nova Conta, valida campos e envia",
              "fullTitle": "Financeiro > Contas a Receber abre modal Nova Conta, valida campos e envia",
              "timedOut": null,
              "duration": 0,
              "state": "skipped",
              "speed": null,
              "pass": false,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "// alert foi substituído por notifyBar nas validações\ncy.get('#btnNovaConta').click();\ncy.get('#contaModal').should('be.visible');\ncy.get('#descricao').focus().type('Parcela 01/2025');\ncy.get('#valor').type('0');\ncy.get('#data_vencimento').type('2025-11-30');\ncy.get('#cliente').type('AC');\ncy.get('#contaForm').submit();\ncy.get('#notifyBar').should('be.visible').and('have.class', 'alert-error');\ncy.get('#valor').clear().type('100');\ncy.get('#contaForm').submit();\ncy.wait('@postReceber');\ncy.get('#contaModal').should('not.be.visible');",
              "err": {},
              "uuid": "beeb75db-a806-4947-aaf8-18202f4af736",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": true
            },
            {
              "title": "autocomplete de cliente e documento funciona",
              "fullTitle": "Financeiro > Contas a Receber autocomplete de cliente e documento funciona",
              "timedOut": null,
              "duration": 0,
              "state": "skipped",
              "speed": null,
              "pass": false,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "cy.get('#btnNovaConta').click();\ncy.get('#cliente').type('AC');\ncy.wait('@getClientes');\ncy.get('#clientesList').find('option').should('have.length.at.least', 1);\ncy.get('#documento').type('NF');\ncy.wait('@getReceber');\ncy.get('#documentosList').find('option').should('have.length.at.least', 1);",
              "err": {},
              "uuid": "e2dd9054-8558-47be-b680-2532ac088939",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": true
            },
            {
              "title": "recebimento individual: abre modal, preenche e envia",
              "fullTitle": "Financeiro > Contas a Receber recebimento individual: abre modal, preenche e envia",
              "timedOut": null,
              "duration": 0,
              "state": "skipped",
              "speed": null,
              "pass": false,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "// botão Receber tem aria-label\ncy.contains('button[aria-label^=\"Receber conta\"]', '💰').first().click();\ncy.get('#recebimentoModal').should('be.visible');\ncy.get('#valor_recebido').should('have.value');\n// validação: não aceita 0 e nem maior que o valor da conta (mock: 250)\ncy.get('#valor_recebido').clear().type('0');\ncy.get('#recebimentoForm').submit();\ncy.get('#notifyBar').should('be.visible').and('have.class', 'alert-error');\ncy.get('#valor_recebido').clear().type('300');\ncy.get('#recebimentoForm').submit();\ncy.get('#notifyBar').should('be.visible').and('have.class', 'alert-error');\ncy.get('#valor_recebido').clear().type('250');\ncy.get('#recebimentoForm').submit();\ncy.wait('@postReceber');\ncy.get('#recebimentoModal').should('not.be.visible');",
              "err": {},
              "uuid": "8b76273c-30cd-4b15-b76b-48bb2e5bc55e",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": true
            },
            {
              "title": "recebimento em lote: seleciona, abre modal e confirma",
              "fullTitle": "Financeiro > Contas a Receber recebimento em lote: seleciona, abre modal e confirma",
              "timedOut": null,
              "duration": 0,
              "state": "skipped",
              "speed": null,
              "pass": false,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "cy.get('input.row-select').first().check();\ncy.get('#btnBulkReceber').should('not.be.disabled').click();\ncy.get('#bulkRecebimentoModal').should('be.visible');\ncy.get('#bulkRecebimentoForm').submit();\ncy.wait('@getReceberById');\ncy.wait('@postReceber');\ncy.get('#bulkRecebimentoModal').should('not.be.visible');\ncy.get('#notifyBar').should('be.visible').and('have.class', 'alert-success');",
              "err": {},
              "uuid": "28288dcf-6a89-4b35-abd0-da9c2aeec857",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": true
            },
            {
              "title": "busca geral tem autocomplete com sugestões",
              "fullTitle": "Financeiro > Contas a Receber busca geral tem autocomplete com sugestões",
              "timedOut": null,
              "duration": 0,
              "state": "skipped",
              "speed": null,
              "pass": false,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "cy.get('#searchInput').type('Men');\ncy.wait('@getReceber');\ncy.get('#searchList').find('option').should('have.length.at.least', 1);",
              "err": {},
              "uuid": "432c2ab7-82da-4c1f-ae2f-dbc6c6c4cbb9",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": true
            },
            {
              "title": "modais têm acessibilidade e controles de minimizar/maximizar",
              "fullTitle": "Financeiro > Contas a Receber modais têm acessibilidade e controles de minimizar/maximizar",
              "timedOut": null,
              "duration": 0,
              "state": "skipped",
              "speed": null,
              "pass": false,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "cy.get('#btnNovaConta').click();\ncy.get('#contaModal').should('have.attr', 'role', 'dialog').and('have.attr', 'aria-modal', 'true');\ncy.get('.modal-min').click();\ncy.get('#contaModal').should('have.class', 'modal-minimized');\ncy.get('.modal-max').click();\ncy.get('#contaModal').should('have.class', 'modal-maximized');\n// clique fora (overlay) fecha\ncy.get('#contaModal').click('topLeft');\ncy.get('#contaModal').should('not.be.visible');",
              "err": {},
              "uuid": "ad2cda9a-5959-40a9-bc8a-4ab388543812",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": true
            },
            {
              "title": "focus-trap e restauração de foco funcionam nos modais",
              "fullTitle": "Financeiro > Contas a Receber focus-trap e restauração de foco funcionam nos modais",
              "timedOut": null,
              "duration": 0,
              "state": "skipped",
              "speed": null,
              "pass": false,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "// abrir modal e verificar ciclo de Tab entre primeiro e último foco\ncy.get('#btnNovaConta').focus().click();\ncy.get('#contaModal').should('be.visible');\n// pressionar Shift+Tab no primeiro foco deve ir para o último\ncy.get('#descricao').focus().type('{shift}{tab}');\ncy.focused().should('exist');\n// fechar com ESC e restaurar foco ao botão que abriu\ncy.get('body').type('{esc}');\ncy.get('#contaModal').should('not.be.visible');\ncy.focused().should('have.attr', 'id', 'btnNovaConta');",
              "err": {},
              "uuid": "be8d7517-2407-4111-99b0-097b3cd221d4",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": true
            },
            {
              "title": "autocomplete de cliente preenche cliente_id oculto",
              "fullTitle": "Financeiro > Contas a Receber autocomplete de cliente preenche cliente_id oculto",
              "timedOut": null,
              "duration": 0,
              "state": "skipped",
              "speed": null,
              "pass": false,
              "fail": false,
              "pending": false,
              "context": null,
              "code": "cy.get('#btnNovaConta').click();\ncy.get('#cliente').type('AC');\ncy.wait('@getClientes');\n// selecionar exatamente \"ACME Ltda\" simulando blur\ncy.get('#cliente').clear().type('ACME Ltda').blur();\ncy.get('#cliente_id').should('have.value', '10');",
              "err": {},
              "uuid": "b88756b3-5fbf-40c8-a0a3-4ed4d8be742a",
              "parentUUID": "153855cf-fe47-4d1d-9955-466fa0dda41a",
              "isHook": false,
              "skipped": true
            }
          ],
          "suites": [],
          "passes": [],
          "failures": [
            "4e445975-4d4c-400e-864c-da3fefcbc345"
          ],
          "pending": [],
          "skipped": [
            "76afa1a3-5880-47cd-9ffb-bb3b367e15f1",
            "beeb75db-a806-4947-aaf8-18202f4af736",
            "e2dd9054-8558-47be-b680-2532ac088939",
            "8b76273c-30cd-4b15-b76b-48bb2e5bc55e",
            "28288dcf-6a89-4b35-abd0-da9c2aeec857",
            "432c2ab7-82da-4c1f-ae2f-dbc6c6c4cbb9",
            "ad2cda9a-5959-40a9-bc8a-4ab388543812",
            "be8d7517-2407-4111-99b0-097b3cd221d4",
            "b88756b3-5fbf-40c8-a0a3-4ed4d8be742a"
          ],
          "duration": 807,
          "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"
    }
  }
}