-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
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
Test configuration object ignored for viewportHeight and viewportWidth #7631
Comments
Yes, I can confirm setting The original PR is only checking that the The describe('test', {
viewportHeight: 200,
viewportWidth: 400,
baseUrl: 'https://example.cypress.io'
}, () => {
it('test', () => {
cy.visit('/').then(() => {
expect(Cypress.config().viewportHeight).eq(200) // passes
expect(Cypress.config().viewportWidth).eq(400) // passes
})
})
}) |
The code for this is done in cypress-io/cypress#8006, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
Testrunner browser window does not respect viewportWidth and viewportHeight configuration passed in via a configuration object to the test or suite function as the second argument.
Your test checks if config object get's the value, which it does.
4cfcae2#diff-8a1bc60bd20378ff06f1cd550ab21defR59
But the testrunner browser window does not get resized.
Desired behavior:
Testrunner browser window should respect viewportWidth and viewportHeight passed in via a configuration object to the test or suite function as the second argument.
Test code to reproduce
Versions
4.8.0
Should work in 4.8.0 according to feature issue #7167
The text was updated successfully, but these errors were encountered: