Skip to content

test(Windows): stabilize tray notification CI test - #185

Merged
ReenigneArcher merged 2 commits into
masterfrom
test/fix-windows-notification
Sep 6, 2026
Merged

test(Windows): stabilize tray notification CI test#185
ReenigneArcher merged 2 commits into
masterfrom
test/fix-windows-notification

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Sep 6, 2026

Copy link
Copy Markdown
Member

Description

Pin the CI Windows runner to windows-2022 because windows-latest suppresses QSystemTrayIcon notifications in the interactive session. Also add a WaitForTrayReady() step in TestNotificationDisplay so the tray icon is fully registered before notification handling, reducing timing-related test flakiness.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

See our AI usage policy.

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.62%. Comparing base (dbacfbe) to head (c322928).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #185   +/-   ##
=======================================
  Coverage   61.62%   61.62%           
=======================================
  Files           5        5           
  Lines         516      516           
  Branches      194      194           
=======================================
  Hits          318      318           
- Misses        128      131    +3     
+ Partials       70       67    -3     
Flag Coverage Δ
Linux-qt5 58.73% <ø> (ø)
Linux-qt6 58.22% <ø> (ø)
Windows-qt6 56.07% <ø> (ø)
macOS-qt6 55.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 2 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbacfbe...c322928. Read the comment docs.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Last Updated 2026-09-06 16:38:15 UTC
Source Run CI Run #794
Commit c322928b4c688fdb916c80d4fa64b294597fa7a5

Screenshot Comparison

PR #185 screenshots vs screenshots baseline.

Matrix: Linux-qt5

Image Baseline PR
tray_icon_ico.png
tray_icon_initial.png
tray_icon_png.png
tray_icon_svg.png
tray_icon_themed.png
tray_icon_update_ico.png
tray_icon_update_png.png
tray_icon_update_svg.png
tray_icon_update_themed.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_left_click.png
tray_menu_shown.png
tray_notification_ico_icon.png
tray_notification_png_icon.png
tray_notification_svg_icon.png
tray_notification_themed_icon.png
tray_tooltip_hover.png

Matrix: Linux-qt6

Image Baseline PR
tray_icon_ico.png
tray_icon_initial.png
tray_icon_png.png
tray_icon_svg.png
tray_icon_themed.png
tray_icon_update_ico.png
tray_icon_update_png.png
tray_icon_update_svg.png
tray_icon_update_themed.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_left_click.png
tray_menu_shown.png
tray_notification_ico_icon.png
tray_notification_png_icon.png
tray_notification_svg_icon.png
tray_notification_themed_icon.png
tray_tooltip_hover.png

Matrix: Windows-qt6

Image Baseline PR
tray_icon_ico.png
tray_icon_initial.png
tray_icon_png.png
tray_icon_svg.png
tray_icon_themed.png
tray_icon_update_ico.png
tray_icon_update_png.png
tray_icon_update_svg.png
tray_icon_update_themed.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_left_click.png
tray_menu_shown.png
tray_notification_ico_icon.png
tray_notification_png_icon.png
tray_notification_svg_icon.png
tray_notification_themed_icon.png
tray_tooltip_hover.png

Matrix: macOS-qt6

Image Baseline PR
tray_icon_ico.png
tray_icon_initial.png
tray_icon_png.png
tray_icon_svg.png
tray_icon_themed.png
tray_icon_update_ico.png
tray_icon_update_png.png
tray_icon_update_svg.png
tray_icon_update_themed.png
tray_menu_checkbox_checked.png
tray_menu_checkbox_unchecked.png
tray_menu_left_click.png
tray_menu_shown.png
tray_notification_ico_icon.png
tray_notification_png_icon.png
tray_notification_svg_icon.png
tray_notification_themed_icon.png
tray_tooltip_hover.png

@ReenigneArcher
ReenigneArcher force-pushed the test/fix-windows-notification branch from 7405a6c to 627b6ad Compare September 6, 2026 15:39
Improve `TestNotificationDisplay` reliability by waiting for Explorer to register the tray icon before dismissing notifications. The test now moves the mouse over the icon, waits for the tooltip, and restores mouse position to avoid timing-related flakiness.
@ReenigneArcher
ReenigneArcher force-pushed the test/fix-windows-notification branch 2 times, most recently from 2ce963a to ba46184 Compare September 6, 2026 16:14
@ReenigneArcher ReenigneArcher changed the title test: enable toasts in Windows screenshot action test(Windows): stabilize tray notification CI test Sep 6, 2026
Pin the CI Windows runner to `windows-2022` because `windows-latest` suppresses `QSystemTrayIcon` notifications in the interactive session. Also add a `WaitForTrayReady()` step in `TestNotificationDisplay` so the tray icon is fully registered before notification handling, reducing timing-related test flakiness.
@ReenigneArcher
ReenigneArcher force-pushed the test/fix-windows-notification branch from ba46184 to c322928 Compare September 6, 2026 16:31
@sonarqubecloud

sonarqubecloud Bot commented Sep 6, 2026

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit c329d9f into master Sep 6, 2026
18 checks passed
@ReenigneArcher
ReenigneArcher deleted the test/fix-windows-notification branch September 6, 2026 16:40
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