-
Notifications
You must be signed in to change notification settings - Fork 600
Owen/control docs p8 #5887
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
base: main
Are you sure you want to change the base?
Owen/control docs p8 #5887
Conversation
Deploying flet-docs with
|
| Latest commit: |
198465f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0c34ff6b.flet-docs.pages.dev |
| Branch Preview URL: | https://owen-control-docs-p8.flet-docs.pages.dev |
| ) | ||
| flet_app_function.assert_screenshot( | ||
| "image_for_docs", | ||
| await flet_app_function.page.take_screenshot(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pixel ration argument should be passed into page.take_screenshot() call, otherwise the test will be failing in CI environment with non-hi-res virtual display.
await flet_app_function.page.take_screenshot(
pixel_ratio=flet_app_function.screenshots_pixel_ratio
),Make sure this is fixed everywhere.
| flet_app_function.assert_screenshot( | ||
| "image_for_docs", | ||
| await flet_app_function.page.take_screenshot(), | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and while you are there you may make this screenshot wider to remove horizontal scrollbar: https://github.com/flet-dev/flet/pull/5887/files#diff-e60ac2b820dd5525c3013f9ce6bbae7a779531b432745ba86a4308ab276ea6c1
Description
Add NavigationBar, MenuBar, MenuItemButton, and ListView example tests and images.