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

UI Test: Support high dpi displays for UI testing #49

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

jbe2277
Copy link
Owner

@jbe2277 jbe2277 commented Jul 16, 2024

The unit test must run with high dpi support for the process so that UI automation (FlaUI) works correct on high dpi displays.

Microsoft documentation:

First, make the client application dpi-aware. To do this, call the SetProcessDPIAware function at startup. This function makes the entire process dpi-aware, meaning that all windows that belong to the process are unscaled.

This PR calls SetProcessDPIAware to support this.
Note: We cannot use the application manifest approach for high dpi support as the unit test will be run by an external process.

Related issues:

@jbe2277 jbe2277 merged commit 62b171f into master Jul 16, 2024
1 check passed
@jbe2277 jbe2277 deleted the UITestHighDpiSupport branch July 16, 2024 18:50
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.

1 participant