Skip to content
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

Set Viewport Size #298

Open
6 tasks
wurzelkuchen opened this issue Oct 22, 2024 · 0 comments
Open
6 tasks

Set Viewport Size #298

wurzelkuchen opened this issue Oct 22, 2024 · 0 comments
Labels
codeImplementationNeeded This issue requires a change in the code of Neodymium docsNeeded The documenttion needs to be checked if there are changes needed and if so, adaptions should be made improvement Low Priority

Comments

@wurzelkuchen
Copy link
Contributor

Quick Description

We are currently able to set the size of the browser window by using the .browserresolution flag in our config. For different browsers the same window size does mean a different viewport size, due to different window decorations.
It would be a nice to have to define the view port size directly to have a better comparison between browsers.

User Story

As a test automation engineer,
I want to configure my tests to have the same viewport size across different browsers
so that I can do a better comparison view.

Functional Requirements

  • Add a property to define the viewport size directly for a browser
  • Add a logic to set the viewport size, this will probably need the use of javascripts. See one example here
  • Make sure browser window size (.browserresolution) and viewport size are not set both with different values. If this happens a usefull error should be thrown.

Documentation Requirements

  • Add Documentation for this feature accordingly

Test Requirements

  • Add unit tests
  • Do a smoke test with an external test suite. Check also what happens in edge cases.
@wurzelkuchen wurzelkuchen added improvement Low Priority docsNeeded The documenttion needs to be checked if there are changes needed and if so, adaptions should be made codeImplementationNeeded This issue requires a change in the code of Neodymium labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codeImplementationNeeded This issue requires a change in the code of Neodymium docsNeeded The documenttion needs to be checked if there are changes needed and if so, adaptions should be made improvement Low Priority
Projects
None yet
Development

No branches or pull requests

1 participant