Skip to content

fix(curriculum): repair failing border test in form step 35#67044

Open
AyushK5ingh wants to merge 2 commits intofreeCodeCamp:mainfrom
AyushK5ingh:issue#66939
Open

fix(curriculum): repair failing border test in form step 35#67044
AyushK5ingh wants to merge 2 commits intofreeCodeCamp:mainfrom
AyushK5ingh:issue#66939

Conversation

@AyushK5ingh
Copy link
Copy Markdown
Contributor

@AyushK5ingh AyushK5ingh commented Apr 21, 2026

Checklist:

Closes #66939

Description

Fixes a false-failing test in Step 35 of the Parent Teacher Conference Form workshop. Users writing correct code (border: none) were seeing test failures due to an overly broad assertion that also matched unintended values like 'medium' and 'medium none'.

Demo:
https://github.com/user-attachments/assets/6856a469-b311-4cab-934c-85260e4b1711

Root Cause

The old assertion used assert.oneOf to check style?.getPropVal('border') against ['none', 'medium', 'medium none']. This allowed incorrect values to pass and caused correct border: none declarations to fail in some browsers due to how computed styles are reported.

Fix

Replaced with assert.strictEqual(style?.borderBottomStyle, 'none') — a precise check on the specific CSS property that the step instruction targets.

@AyushK5ingh AyushK5ingh requested review from a team as code owners April 21, 2026 14:15
@github-actions github-actions Bot added the scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory. label Apr 21, 2026
@AyushK5ingh AyushK5ingh changed the title fix(curriculum): repair failing border test in form step 35 freeCodeC… fix(curriculum): repair failing border test in form step 35 Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: curriculum Lessons, Challenges, Projects and other Curricular Content in curriculum directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parent Teacher Conference Form - Step 35

1 participant