Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I just tried to put a cy.log into cy.fixture.then like this:
it.only('test', () => { cy .fixture('login') .then(async (data) => { cy.log('count', Object.keys(data).length); return await Object.keys(data).length; }) .then((test) => { cy.log('test', test); }) })
Result:
We get 'count' with a value, but next then, we don't have the value anymore
If I comment / remove cy.log line, i get
Which is the desired behaviour.
We should get the same value as count in test in second then.
Cypress 4.10.0 Ubuntu 18.10 Chrome 84
The text was updated successfully, but these errors were encountered:
The code for this is done in cypress-io/cypress#9372, but has yet to be released. We'll update this issue and reference the changelog when it's released.
Sorry, something went wrong.
Many thanks to you @sainthkh and @Bkucera for having solved my problem^^
❤️
Released in 6.2.0.
6.2.0
This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v6.2.0, please open a new issue.
Successfully merging a pull request may close this issue.
Current behavior:
I just tried to put a cy.log into cy.fixture.then like this:
Result:
We get 'count' with a value, but next then, we don't have the value anymore
If I comment / remove cy.log line, i get
Which is the desired behaviour.
Desired behavior:
We should get the same value as count in test in second then.
Versions
Cypress 4.10.0
Ubuntu 18.10
Chrome 84
The text was updated successfully, but these errors were encountered: