Skip to content

Cafe Menu workshop hints that pass regardless of the learner's code #69072

Closed

Description

@majestic-owl448

Describe the Issue

Three hints in the Design a Cafe Menu workshop's --hints-- blocks let a test pass on wrong code.

  1. Step 53's first hint assigns a result and never asserts on it, so the check passes whatever the learner writes.
const hasFontFamily = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style['font-family'] === 'sans-serif');
  1. Step 77's second hint has the same shape.
const hasColor = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style.color === 'black');
  1. Step 50's padding-bottom hint checks padding-top, which the hint above it already guarantees. A learner who never sets padding-bottom still passes.
const hasPaddingBottom = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style['padding-top'] === '20px');

Affected Pages

Expected behavior

  1. Every hint block ends in an assertion, so a learner who skips the step fails it. The Step 53 font-family hint and the Step 77 color hint both assert on the value they compute.
  2. The Step 50 padding-bottom hint asserts on padding-bottom, so it fails for a learner who set only padding-top.

Activity

  1. added
    help wanted
    scope: curriculum
    rwd v9 cert
    on Jul 27, 2026
  2. Technoritesh152005 commented on Jul 27, 2026

    @Technoritesh152005
    Contributor

    Hi! I'd be happy to work on this. Since this issue covers many unrelated fixes across multiple steps, would you prefer a single PR or several smaller PRs grouped by category (e.g. missing assertions, DOM-based checks, cleanup/refactors)?

  3. majestic-owl448 commented on Jul 27, 2026

    @majestic-owl448
    ContributorAuthor

    @Technoritesh152005 I am breaking this down into smaller issues, so one PR for one issue is fine

  4. changed the title [-]Test code problems in the hints of the Design a Cafe Menu workshop[/-] [+]Cafe Menu workshop hints that pass regardless of the learner's code[/+] on Jul 27, 2026
  5. added
    status: PR in works
    and removed
    help wanted
    on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    rwd v9 certscope: curriculumstatus: PR in works

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions