high-optician-91398
06/24/2022, 9:04 PMcypress.config.ts
I can't import my angular stuff. Guessing it is not compiled or something and it tries to import the .ts directly. Any idea?mysterious-sandwich-43667
06/25/2022, 10:28 PMmysterious-sandwich-43667
06/25/2022, 10:35 PMbitter-fountain-36713
06/25/2022, 10:47 PM.its()
.mysterious-sandwich-43667
06/25/2022, 11:07 PMmysterious-sandwich-43667
06/25/2022, 11:07 PMmysterious-sandwich-43667
06/25/2022, 11:24 PMbitter-fountain-36713
06/25/2022, 11:34 PMmysterious-sandwich-43667
06/26/2022, 12:42 AMgray-kilobyte-89541
06/26/2022, 12:02 PMfunction () { ... }
syntax. Plus you can just set it into a local variable one and use it normally https://glebbahmutov.com/blog/fixtures-in-custom-commands/#problem-aliases-are-resetbillowy-hairdresser-82846
06/26/2022, 12:35 PMalert-quill-14780
06/27/2022, 5:19 AMacoustic-ice-69900
06/27/2022, 1:46 PMprehistoric-restaurant-72560
06/27/2022, 1:46 PMYour configFile is invalid: ***/cypress.config.ts
It threw an error when required, check the stack trace below:
Error: Cannot find module 'esbuild'
Require stack:
- /builds/***/node_modules/@bahmutov/cypress-esbuild-preprocessor/src/index.js
- /builds/A7ZaeUHb/0/gog-QA/e2e-finapp-sales-summary/cypress.config.ts
- /root/.cache/Cypress/10.2.0/Cypress/resources/app/node_modules/@packages/server/lib/plugins/child/run_require_async_child.js
.
.
.
millions-architect-22884
06/27/2022, 6:28 PMmillions-architect-22884
06/27/2022, 6:29 PMbulky-london-24314
06/27/2022, 6:33 PMpowerful-chef-53496
06/27/2022, 9:06 PMisReady
flag?most-carpenter-29893
06/27/2022, 11:19 PMesModuleInterop
needs to be true in your tsconfig.json: https://www.typescriptlang.org/tsconfig#esModuleInterop . Hope this helps 🌹bright-park-76512
06/28/2022, 10:28 AMbrash-tiger-52405
06/28/2022, 10:47 AMsalmon-river-93816
06/28/2022, 10:59 AMgray-kilobyte-89541
06/28/2022, 11:09 AMgentle-accountant-4760
06/28/2022, 11:41 AMts
Suite('Cypress support, I need help', () => {
before(() => {
prepare();
cy.visit('https://helloworld.com');
});
Scenario('Test', () => {
When('we are testing get', () => {
cy.get('.test')
});
Then('we are testing cy.visit', () => {
cy.visit('https://helloworld.com/Barrythrill')
});
Basically whats happening is the cookies from prepare() goes to the first cy.visit but in the second cy.visit, it is all restored. how can I re-use all the needs?fresh-doctor-14925
06/28/2022, 11:43 AMcy.session()
is probably going to be helpful for you here. Take a look at the docs for thatgentle-accountant-4760
06/28/2022, 11:44 AMexperimentalSessionAndOrigin
gentle-accountant-4760
06/28/2022, 11:44 AMgentle-accountant-4760
06/28/2022, 11:47 AMfresh-doctor-14925
06/28/2022, 12:16 PMfresh-doctor-14925
06/28/2022, 12:17 PMprepare()
in a beforeEach()
or use cy.session()