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

refactor: Make code less dependent on the Settings object. #110

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Nov 20, 2024

Instead, use smaller subsets of that object instead.

All of this was necessary to create our first golden-capture test. We check that the login screen renders correctly and according to an image reference.

We're only running the test on the bazel-opt build, because there we have tight control over which Qt version we run. We're doing a byte-for-byte comparison, so the screenshot has to be pixel-perfect.


This change is Reviewable

@iphydf iphydf added this to the v1.18.x milestone Nov 20, 2024
@github-actions github-actions bot added the refactor Refactoring production code, eg. renaming a variable, not affecting semantics label Nov 20, 2024
@iphydf iphydf force-pushed the loginscreen-test branch 4 times, most recently from c7a72a2 to 2982bea Compare November 20, 2024 01:32
@iphydf iphydf marked this pull request as ready for review November 20, 2024 01:34
@iphydf iphydf modified the milestones: v1.18.x, v1.18.0 Nov 22, 2024
@iphydf iphydf force-pushed the loginscreen-test branch 4 times, most recently from b440951 to 1bfb4b2 Compare November 22, 2024 14:40
@iphydf iphydf requested a review from a team as a code owner November 22, 2024 14:40
@iphydf iphydf force-pushed the loginscreen-test branch 11 times, most recently from 3f16233 to 86a341b Compare November 22, 2024 17:04
Instead, use smaller subsets of that object instead.

All of this was necessary to create our first golden-capture test. We
check that the login screen renders correctly and according to an
image reference.
@toktok-releaser toktok-releaser merged commit a79fe0f into TokTok:master Nov 22, 2024
25 checks passed
@iphydf iphydf deleted the loginscreen-test branch November 22, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring production code, eg. renaming a variable, not affecting semantics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants