Skip to content

test: fix CI failures for allowedColors deprecation - #3

Merged
mikeylong merged 5 commits into
mainfrom
fix/ci-test-failures
Jan 29, 2026
Merged

mikeylong merged 5 commits into
mainfrom
fix/ci-test-failures

Conversation

@mikeylong

Copy link
Copy Markdown
Collaborator

Fixes CI test failures related to allowedColors deprecation.

Changes

validate-portability.test.mjs

  • Removed allowedColors from fixture contract
  • Keeps test focused on tarball portability, not deprecation behavior
  • Maintains 0 warnings expectation

color-deprecation.test.mjs

  • Added createTempWorkspace helper function
    • Creates minimal valid workspace with proper structure
    • Includes contract-container, sections, fonts, motion, layout
    • Ensures tests validate against real workspace structure
  • Updated test assertions:
    • Allow warnings >= 1 instead of exact count
    • Assert no schema errors for color policy test
    • Use --workspace-root for proper validation

Test Results

  • ✅ validate-portability.test.mjs: passing
  • ✅ color-deprecation.test.mjs: both tests passing

These changes reflect the new allowedColors deprecation behavior while keeping tests focused on their specific concerns.

@mikeylong
mikeylong force-pushed the fix/ci-test-failures branch from c7fda43 to c1e5ec6 Compare January 16, 2026 21:09
- Remove allowedColors from validate-portability fixture contract
  - Keeps portability test focused on tarball install, not deprecation
  - Maintains 0 warnings expectation

- Add createTempWorkspace helper to color-deprecation tests
  - Creates minimal valid workspace with proper structure
  - Includes contract-container, sections, fonts, motion, layout
  - Ensures tests validate against real workspace structure

- Update color-deprecation test assertions
  - Allow warnings >= 1 instead of exact count
  - Assert no schema errors for color policy test
  - Use --workspace-root for proper validation

These changes reflect the new allowedColors deprecation behavior
while keeping tests focused on their specific concerns.
@mikeylong
mikeylong force-pushed the fix/ci-test-failures branch from c1e5ec6 to 834c0f5 Compare January 16, 2026 21:11
Fixes pageFrame test failures caused by deprecated allowedColors field.
Tests were expecting exit code 0 but getting exit code 2 due to
deprecation warnings/errors.
- Add apps/test-surface/app/ directory structure to all fixtures
- Create globals.css with required declarations (fonts, colors, motion, layout)
- Create page.tsx with section markers for each fixture
- Fix inline-styles: use string style prop instead of JSX object
- Fix maxwidth-fail: use string style prop with 1400px
- Fix css-rule: add CSS variable and import globals.css in layout
- Fix font-family: remove 'sans-serif' from non-allowed fonts

These changes ensure fixtures have complete workspace structure
required for validation, similar to color-deprecation test fixes.

All 6 pageFrame tests now passing (tests 54-59).
@mikeylong
mikeylong merged commit 06c0349 into main Jan 29, 2026
2 checks passed
@mikeylong
mikeylong deleted the fix/ci-test-failures branch March 19, 2026 00:48
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