Skip to content

test(a11y): give the window controls mock a button layout - #364

Merged
Hakanbaban53 merged 2 commits into
Zarestia-Dev:masterfrom
repires:fix/axe-window-controls-mock
Nov 19, 2026
Merged

Hakanbaban53 merged 2 commits into
Zarestia-Dev:masterfrom
repires:fix/axe-window-controls-mock

Conversation

@repires

@repires repires commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Fixes the red CI on master since #357.

The axe check for the window controls in src/testing/axe.spec.ts (#357) mocks WindowService without buttonLayout, which the component reads since #353. The two PRs passed separately, but together the test throws this.windowService.buttonLayout is not a function. That broke the master run for 5245e58, and every open PR's Frontend check fails the same way, #363 included.

The mock now provides buttonLayout: signal(DEFAULT_WINDOW_BUTTON_LAYOUT). Full suite passes locally; ESLint and Prettier are clean. Sorry, my miss in #357.

The axe check for the window controls (Zarestia-Dev#357) was written before the
component read WindowService.buttonLayout (Zarestia-Dev#353), so on master it fails
with "buttonLayout is not a function".
@Hakanbaban53
Hakanbaban53 merged commit 6e7c35e into Zarestia-Dev:master Nov 19, 2026
6 checks passed
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