bright-twilight-69276
01/12/2023, 9:19 PMgray-kilobyte-89541
01/12/2023, 11:11 PMsome-boots-12634
01/13/2023, 4:20 AMgray-address-77532
01/13/2023, 5:23 AMYour configFile is invalid: path-to-project\cypress.config.js
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\\account-billing-reports\node_modules\colorette\index.js from C:\\account-billing-reports\node_modules\listr2\dist\utils\colorette.js not supported.
Instead change the require of index.js in C:\\account-billing-reports\node_modules\listr2\dist\utils\colorette.js to a dynamic import() which is available in all CommonJS modules.
I've tried reinstalling Cypress, clearing cypress cache then reinstalling, deleting node_modules then reinstalling, etc.
can cypress run in a commonjs project?helpful-zebra-52877
01/13/2023, 8:00 AMCypress.Cookies.defaults({
preserve: ['.ASPXAUTH', 'Authentication' ,'.JwtAuth', 'IPValidateCookie', 'VX', 'Culture']
})
Removing that line will allow Cypress to continue running tests, but only the first test in each file. (subsequent tests fail since the user no longer automatically gets/stays logged in) Your migration guide suggested replacing the line above with the following:
beforeEach(() => {
cy.session('unique_identifier', cy.login, {
validate () {
cy.getCookies().should('have.length', 2)
},
cacheAcrossSpecs: true
})
})
but that doesn't seem to have the desired effect as now even the first tests no longer log in. The migration guide seems to assume the Cypress.Cookies.defaults is part of a Describe, rather than a line in the e2e.js. Any idea how to get my tests running again?narrow-cpu-2218
01/13/2023, 9:09 AMacceptable-hamburger-48790
01/13/2023, 9:15 AMbrash-plumber-67474
01/13/2023, 9:20 AMit.each()
.gray-kilobyte-89541
01/13/2023, 11:33 AMgray-kilobyte-89541
01/13/2023, 11:33 AMbumpy-insurance-8581
01/13/2023, 1:15 PMequalTo(something).within(0.001)
powerful-orange-86819
01/13/2023, 1:25 PMstocky-salesclerk-42224
01/13/2023, 2:49 PMgray-kilobyte-89541
01/13/2023, 3:08 PMafter:run
events? https://github.com/cypress-io/cypress/issues/24410stocky-salesclerk-42224
01/13/2023, 3:11 PMtest:after:run
and after:run
gray-kilobyte-89541
01/13/2023, 3:18 PMstocky-salesclerk-42224
01/13/2023, 3:27 PMgray-kilobyte-89541
01/13/2023, 3:51 PMCypress
"after:run" browser event, see https://docs.cypress.io/api/plugins/writing-a-plugin#The-following-events-are-available and https://docs.cypress.io/api/events/catalog-of-eventssome-boots-12634
01/13/2023, 8:31 PMgray-kilobyte-89541
01/13/2023, 8:55 PMpowerful-orange-86819
01/14/2023, 10:07 AMcolossal-table-38461
01/14/2023, 3:34 PMaloof-waiter-92540
01/14/2023, 6:02 PMplain-mechanic-5738
01/15/2023, 4:43 AMacceptable-hamburger-48790
01/15/2023, 5:43 AMplain-mechanic-5738
01/15/2023, 9:49 AMplain-mechanic-5738
01/15/2023, 9:50 AMplain-mechanic-5738
01/15/2023, 9:50 AMbitter-fountain-36713
01/15/2023, 5:24 PMbitter-fountain-36713
01/15/2023, 5:26 PM