You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi guys. thanks for such a great job!
I'm working on an NFT marketplace project and I need to write some E2E tests for different parts of the application. So, after searching I ran into your wrapper and started to use it.
Now I have problems running the wrapper within watch mode. Yes I know The docs say (maybe bugged in some cases because it doesn't clear metamask state before each e2e test, please use synpress run) but this isn't run AT ALL! not with some bugs!
also, running each test completely with npm run test is really time-consuming process.
PROBLEM DESCRIPTION:
When I run npm run test (PLEASE CHECK THE PACKAGE.JSON FILE BELOW) everything works as expected. But when I want to run a particular test (let's say test.spec.js file) in cypress windows, chrome test window freezes with the following error:
Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise.
The command that returned the promise was:
> cy.task()
The cy command you invoked inside the promise was:
> cy.MintSetup()
Because Cypress commands are already promise-like, you don't need to wrap them or return your own promise.
Cypress will resolve your command with whatever the final Cypress command yields.
The reason this is an error instead of a warning is because Cypress internally queues commands serially whereas Promises execute as soon as they are invoked. Attempting to reconcile this would prevent Cypress from ever resolving.
Because this error occurred during a before all hook we are skipping the remaining tests in the current suite:
'setupMetamask',
158 | (secretWordsOrPrivateKey, network, password = 'Tester@1234') => {
> 159 | return cy.task('setupMetamask', {
| ^
160 | secretWordsOrPrivateKey,
161 | network,
162 | password,
Can you please help me to speed up my development speed by running watch mode?
here is a complete description of The problem:
Folder structure of the project:
NFT app
├── app folders
├──cypress <= HERE IS THE MAIN TEST FOLDER
│ ├── plugins <= EMPTY
│ ├── integration <= EMPTY
│ ├── e2e
│ │ └── test.spec.js
│ ├── support
│ │ ├── index.js
│ │ └── commands.js
│ ├── tsconfig.json
│ └── .eslintrc.js
│
├── synpress.json
└── package.json
hi guys. thanks for such a great job!
I'm working on an NFT marketplace project and I need to write some E2E tests for different parts of the application. So, after searching I ran into your wrapper and started to use it.
Now I have problems running the wrapper within watch mode. Yes I know The docs say
(maybe bugged in some cases because it doesn't clear metamask state before each e2e test, please use synpress run)
but this isn't run AT ALL! not with some bugs!also, running each test completely with
npm run test
is really time-consuming process.PROBLEM DESCRIPTION:
When I run
npm run test
(PLEASE CHECK THE PACKAGE.JSON FILE BELOW) everything works as expected. But when I want to run a particular test (let's say test.spec.js file) in cypress windows, chrome test window freezes with the following error:Can you please help me to speed up my development speed by running watch mode?
here is a complete description of The problem:
synpress.json
packages.json
.eslintrc.js in the cypress folder
tsconfig.json in the cypress folder
The text was updated successfully, but these errors were encountered: