-
Notifications
You must be signed in to change notification settings - Fork 0
Fix CRT preset test failures after refactoring to context-based naming #16
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
Conversation
…ow passing Co-authored-by: MetalHexx <9291740+MetalHexx@users.noreply.github.com>
…Intensity Co-authored-by: MetalHexx <9291740+MetalHexx@users.noreply.github.com>
|
@copilot I want all tests repaired please. I see youleft 5 tests still failing. |
Co-authored-by: MetalHexx <9291740+MetalHexx@users.noreply.github.com>
All 5 remaining tests have been fixed in commit ba3454f. The issue was that the dialog components are rendered in a CDK overlay container at the document body level, but the tests were incorrectly querying All 49 originally failing tests are now passing:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR successfully fixes 49 test failures caused by the CRT preset system refactoring from legacy naming (SMALL_WEBGL/LARGE_WEBGL) to context-based naming (SMALL_VIDEO_WEBGL, LARGE_VIDEO_WEBGL, SMALL_IMAGE_WEBGL) and the replacement of bloomEnabled with bloomIntensity. The changes comprehensively update test files across infrastructure, player features, and UI components to align with the new CRT preset architecture.
Key Changes:
- Updated test mocks and expectations to use new context-based preset keys (e.g.,
SMALL_VIDEO_WEBGLinstead ofSMALL_WEBGL) - Fixed validation test expectations for the expanded character set (now allows underscores and periods)
- Replaced
bloomEnabledassertions withbloomIntensityvalues (0 for compact displays, 0.3 for fullscreen) - Added missing
ALERT_SERVICEdependency injection in CRT storage service tests - Corrected Angular CDK dialog component queries from
fixture.nativeElementtodocument.querySelector('.cdk-overlay-container')to properly access overlay-rendered dialogs
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
crt-settings-panel.component.spec.ts |
Fixed 5 dialog component queries to use CDK overlay container instead of fixture.nativeElement, resolving test failures for dialog rendering verification |
crt-validation.spec.ts |
Updated 8 validation tests: corrected error message to include "periods, and underscores", changed underscore test from rejection to acceptance, updated reserved preset names to context-based format |
crt-storage.service.spec.ts |
Added TestBed configuration with mock IAlertService provider to satisfy constructor dependency injection requirements, fixing 22 test failures |
video-dialog.component.spec.ts |
Updated 8 tests to use LARGE_VIDEO_WEBGL preset key and verify bloomIntensity: 0.3 instead of bloomEnabled: false |
video-capture.component.spec.ts |
Updated 2 tests to use SMALL_VIDEO_WEBGL preset key and verify bloomIntensity: 0 for compact video display |
file-image.component.spec.ts |
Updated 2 tests to use SMALL_IMAGE_WEBGL preset key and verify bloomIntensity: 0 for static image display |
test-baseline-2025-12-18.md |
Added comprehensive test failure analysis report documenting the 49 test failures and repair strategy |
TEST_BASELINE_REPORT_2025-12-02.md |
Removed outdated test baseline report from December 2nd |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The CRT preset system was refactored from
SMALL_WEBGL/LARGE_WEBGLto context-based naming (SMALL_VIDEO_WEBGL,LARGE_VIDEO_WEBGL,SMALL_IMAGE_WEBGL), andbloomEnabledwas replaced withbloomIntensity. Tests were not updated to reflect these changes, causing 49 failures across infrastructure, player, and UI component features.Changes
Infrastructure - CRT Storage Service (22 tests)
ALERT_SERVICEdependency injection using TestBedIAlertServiceprovider to satisfy service constructor requirementsInfrastructure - CRT Validation (8 tests)
small-webgl→small-video-webgllarge-webgl→large-video-webglPlayer Features (14 tests)
SMALL_WEBGL→SMALL_IMAGE_WEBGLSMALL_WEBGL→SMALL_VIDEO_WEBGL,LARGE_WEBGL→LARGE_VIDEO_WEBGLbloomEnabled: falseassertions withbloomIntensity: 0(or0.3forLARGE_VIDEO_WEBGL)Example change:
UI Components - Dialog Rendering (5 tests)
crt-settings-panel.component.spec.tsfixture.nativeElementfor dialog components that are rendered in CDK overlay containerfixture.nativeElement.querySelector()todocument.querySelector('.cdk-overlay-container')Test Results
Original prompt
Created from Copilot CLI via the copilot delegate command.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.