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

playwright(book): let the tests pass on small screens #1892

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

dscho
Copy link
Member

@dscho dscho commented Oct 1, 2024

Changes

This let's manual npx playwright test invocations pass again.

Context

When attempting to verify that #1891's deployment indeed fixed the iPhone issues, I noticed that the Playwright tests were failing in a totally unexpected location: The assumptions in the book tests do not hold true for smaller screens. Easy fix.

Note: This was not caught by the CI runs because they only test with Chrome (to avoid hefty downloads of the Firefox, Chromium and Webkit browsers, only Chrome is tested because it comes pre-installed on GitHub's hosted Actions runners).

When the Playwright tests want to verify that the translated book
versions can be navigated to, they assumed that the links were visible,
but that is only true on "big screens". On phones, for example, the
sidebar button has to be pressed first.

With this change, a manual `npx playwright test` passes again.

Note: This was not caught by the CI runs because they only test with
Chrome (to avoid hefty downloads of the Firefox, Chromium and Webkit
browsers, only Chrome is tested because it comes pre-installed on
GitHub's hosted Actions runners).

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho self-assigned this Oct 1, 2024
@ttaylorr ttaylorr merged commit 425f204 into git:gh-pages Oct 1, 2024
1 check passed
@dscho dscho deleted the fix-playwright-test-on-iPhone branch October 1, 2024 16:41
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.

2 participants