{ "stats": { "suites": 1, "tests": 4, "passes": 4, "pending": 0, "failures": 0, "start": "2025-11-06T05:26:25.639Z", "end": "2025-11-06T05:26:26.910Z", "duration": 1271, "testsRegistered": 4, "passPercent": 100, "pendingPercent": 0, "other": 0, "hasOther": false, "skipped": 0, "hasSkipped": false }, "results": [ { "uuid": "05e23fe6-62f3-404c-943f-f4a41ed585ef", "title": "", "fullFile": "cypress/component/FlatmapServerTest.cy.js", "file": "cypress/component/FlatmapServerTest.cy.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { "uuid": "c39f5cc9-a4d1-4d24-bcc8-61ec6e02260e", "title": "MultiFlatmapVuer Error Handling", "fullFile": "", "file": "", "beforeHooks": [], "afterHooks": [], "tests": [ { "title": "should handle 500 Internal Server Error", "fullTitle": "MultiFlatmapVuer Error Handling should handle 500 Internal Server Error", "timedOut": null, "duration": 658, "state": "passed", "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.intercept('GET', FLATMAP_API, {\n statusCode: 500,\n body: 'Internal Server Error',\n}).as('serverError');\ncy.mount(MultiFlatmapVuer, {\n props: {\n flatmapAPI: FLATMAP_API,\n initial: 'Rat',\n availableSpecies: {\n Rat: {\n taxo: 'NCBITaxon:10114',\n iconClass: 'mapicon-icon_rat',\n },\n },\n },\n});\ncy.wait('@serverError');\ncy.get('.flatmap-error').should('exist');\ncy.contains('MultiFlatmap Error!').should('be.visible');\ncy.contains('unexpected error').should('be.visible');\ncy.contains('try again later').should('be.visible');", "err": {}, "uuid": "22ad1a51-3a17-4af4-84f5-5437a556502c", "parentUUID": "c39f5cc9-a4d1-4d24-bcc8-61ec6e02260e", "isHook": false, "skipped": false }, { "title": "handles 500 with valid JSON body (would bypass catch)", "fullTitle": "MultiFlatmapVuer Error Handling handles 500 with valid JSON body (would bypass catch)", "timedOut": null, "duration": 151, "state": "passed", "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.intercept('GET', '**/flatmap/v3/', {\n statusCode: 500,\n headers: { 'content-type': 'application/json' },\n body: [], // valid JSON array -> response.json() resolves\n}).as('serverErrorJson');\ncy.mount(MultiFlatmapVuer, {\n props: {\n flatmapAPI: FLATMAP_API,\n initial: 'Rat',\n availableSpecies: { Rat: { taxo: 'NCBITaxon:10114' } },\n },\n});\ncy.wait('@serverErrorJson');\ncy.get('.flatmap-error').should('exist');", "err": {}, "uuid": "6644445b-d669-468e-9d9e-9e32b76dcc93", "parentUUID": "c39f5cc9-a4d1-4d24-bcc8-61ec6e02260e", "isHook": false, "skipped": false }, { "title": "should handle 404 endpoint error", "fullTitle": "MultiFlatmapVuer Error Handling should handle 404 endpoint error", "timedOut": null, "duration": 215, "state": "passed", "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.intercept('GET', FLATMAP_API, {\n statusCode: 404,\n body: { status_code: 404 },\n}).as('notFoundError');\ncy.mount(MultiFlatmapVuer, {\n props: {\n flatmapAPI: FLATMAP_API,\n initial: 'Rat',\n },\n});\ncy.wait('@notFoundError');\ncy.contains('flatmap API endpoint is incorrect').should('be.visible');", "err": {}, "uuid": "32055964-88b5-420f-94fc-7d6dffa53345", "parentUUID": "c39f5cc9-a4d1-4d24-bcc8-61ec6e02260e", "isHook": false, "skipped": false }, { "title": "should handle network failure", "fullTitle": "MultiFlatmapVuer Error Handling should handle network failure", "timedOut": null, "duration": 145, "state": "passed", "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, "code": "cy.intercept('GET', FLATMAP_API, {\n forceNetworkError: true,\n}).as('networkError');\ncy.mount(MultiFlatmapVuer, {\n props: {\n flatmapAPI: FLATMAP_API,\n initial: 'Rat',\n },\n});\ncy.wait('@networkError');\ncy.get('.flatmap-error').should('exist');", "err": {}, "uuid": "066324a9-c87f-433c-b190-36071652d2cb", "parentUUID": "c39f5cc9-a4d1-4d24-bcc8-61ec6e02260e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ "22ad1a51-3a17-4af4-84f5-5437a556502c", "6644445b-d669-468e-9d9e-9e32b76dcc93", "32055964-88b5-420f-94fc-7d6dffa53345", "066324a9-c87f-433c-b190-36071652d2cb" ], "failures": [], "pending": [], "skipped": [], "duration": 1169, "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/mocha", "quiet": true, "overwrite": false, "html": true, "json": true }, "version": "6.3.0" } } }