Mocha error occurs sometimes using Cypress plugins #17919
-
Looking to see if any has seen this problem or something similar. I don't know if the issue lies with Cypress or, the Cypress-Harvester and/or cypress-intellij-reporter plugins. I am using:
I am creating some tests using Cypress. Some of the tests involve tables, making sure that the tables can be sorted (ascending and descending) properly by different columns. I use Cypress-Harvester to "scrape" the table and assert that the sorting is correct. Some of the column checks work fine. But for some reason, checking other columns is throwing an error, ending the test. This is an example of the Cypress/Cypress-Harvester code which works just fine:
This is an example of the Cypress/Cypress-Harvester code which fails the assertion:
This is the error: warn mocha-intellij: cannot load "./lib/utils". Caused by Error: Cannot find module 'mocha' Require stack: AssertionError: expected false to be true Any insights are appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
When running the above test within IntelliJ, the cypress-intellij-reporter is generating the above error message upon test failure which is preventing the true test failure error(s) from surfacing. When I exit IntelliJ and run the above test at a Windows CMD line, it removes cypress-intellij-reporter from the equation. The test still fails but for other reasons in the test code. I have opened the following issue against cypress-intellij-reporter: |
Beta Was this translation helpful? Give feedback.
When running the above test within IntelliJ, the cypress-intellij-reporter is generating the above error message upon test failure which is preventing the true test failure error(s) from surfacing. When I exit IntelliJ and run the above test at a Windows CMD line, it removes cypress-intellij-reporter from the equation. The test still fails but for other reasons in the test code. I have opened the following issue against cypress-intellij-reporter:
mbolotov/cypress-intellij-reporter#3