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

test: update menu-bar visual tests to not capture full body #7841

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

web-padawan
Copy link
Member

@web-padawan web-padawan commented Sep 20, 2024

Description

When bumping browser version, document height might change which causes many visual tests to break.

In case of vaadin-menu-bar there is no need to capture document.body so I changed to use div.
Updated width and height to ensure there is enough space to display the opened sub-menu.

Type of change

  • Tests

Note

Updated only Lumo visual tests for now as I'm going to bump Chrome version for Lumo first.

Copy link

sonarcloud bot commented Sep 20, 2024

@vursen
Copy link
Contributor

vursen commented Sep 23, 2024

Could web-test-runner's setViewport help avoid this issue? We use it in some places already.

@web-padawan
Copy link
Member Author

Visual tests are using SauceLabs launcher through webdriver and it lacks support for it: modernweb-dev/web#1072

@web-padawan web-padawan merged commit 5c8f872 into main Oct 8, 2024
9 checks passed
@web-padawan web-padawan deleted the test/menu-bar-visual-tests branch October 8, 2024 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants