Skip to content

[WIP] Tests: support automated UI testing#2709

Draft
blammit wants to merge 1 commit intomainfrom
blam/ui-test
Draft

[WIP] Tests: support automated UI testing#2709
blammit wants to merge 1 commit intomainfrom
blam/ui-test

Conversation

@blammit
Copy link
Contributor

@blammit blammit commented Dec 8, 2025

Add C++ and QML API to support simple automated UI testing. The main idea is to click through the UI and do a simple image comparison to verify whether screens have changed.

See tests/ui/README.md for more information.

A basic set of tests have been implemented for mock mode, in tests/ui/smoke/mock-maximal.

Contributes to #984


FYI

See the documentation in tests/ui/README.md for more info.

Run the mock-maximal test with:

./bin/venus-gui-v2 --mock --ui-test smoke/mock-maximal

@blammit blammit marked this pull request as draft December 8, 2025 08:16
@blammit blammit changed the title Tests: support automated UI testing [WIP] Tests: support automated UI testing Dec 8, 2025
@blammit blammit force-pushed the blam/ui-test branch 3 times, most recently from f0cf476 to af4d7d2 Compare December 9, 2025 00:09
@blammit blammit added this to the gui-v2 v1.3.0 / Venus OS v3.80 milestone Dec 9, 2025
@blammit blammit force-pushed the blam/ui-test branch 3 times, most recently from c6318b9 to 99bbb9f Compare January 9, 2026 12:52
@blammit blammit force-pushed the blam/ui-test branch 2 times, most recently from 6f3ab1a to de05aac Compare February 4, 2026 03:44
Add C++ and QML API to support simple automated UI testing. The main
idea is to click through the UI and do a simple image comparison to
verify whether screens have changed.

See tests/ui/README.md for more information.

A basic set of tests have been implemented for mock mode, in
tests/ui/smoke/mock-maximal.

Also, avoid loading the genset and alternator pages asynchronously, as
that causes uncertainty as to when the page content is loaded and
captures are possible for testing.

Contributes to #984
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