From c86004188fe14dfedeebe4328ded83278ed47afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AEzdoag=C4=83=20Octavio?= <179933691+octavio-js@users.noreply.github.com> Date: Fri, 23 Jan 2026 15:08:10 +0200 Subject: [PATCH] feat(curriculum): implement more specific tests for step one of the flexbox workshop (#65296) --- .../61537bb9b1a29430ac15ad38.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/blocks/workshop-flexbox-photo-gallery/61537bb9b1a29430ac15ad38.md b/curriculum/challenges/english/blocks/workshop-flexbox-photo-gallery/61537bb9b1a29430ac15ad38.md index f180bef1539..0419c3c8208 100644 --- a/curriculum/challenges/english/blocks/workshop-flexbox-photo-gallery/61537bb9b1a29430ac15ad38.md +++ b/curriculum/challenges/english/blocks/workshop-flexbox-photo-gallery/61537bb9b1a29430ac15ad38.md @@ -12,12 +12,21 @@ Start this project by linking your `styles.css` file to the page. # --hints-- -Your `link` element should have an `href` attribute with the value `styles.css`. +You should have a `link` element within your `head` element. ```js -assert.match(code, /link")); ``` +Your `link` element should have `rel="stylesheet"` and `href="styles.css"`. + +```js + const link = document.querySelector("head>link"); + assert.equal(link?.getAttribute("rel"), "stylesheet"); + const href = link?.getAttribute("data-href"); + assert.oneOf(href, ["./styles.css", "styles.css"]); +``` + # --seed-- ## --seed-contents--