Skip to content

Conversation

@mikeylong
Copy link
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).
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