chore(curriculum): update cat painting workshop steps 46–47 to use assert methods (#60309)

Co-authored-by: yosr maalej <johndoes@example.com>
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
This commit is contained in:
yosrmaalej47
2025-05-16 13:00:28 +02:00
committed by GitHub
co-authored by yosr maalej Huyen Nguyen Krzysztof G.
parent 3a146ec946
commit ed83b544e9
2 changed files with 6 additions and 6 deletions
@@ -14,13 +14,13 @@ To make the right eye look like an eye, give it a border radius of `60%`. Also,
Your `.cat-right-eye` selector should have a `border-radius` property set to `60%`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-eye')?.borderRadius === '60%')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-eye')?.borderRadius, '60%');
```
Your `.cat-right-eye` selector should have a `transform` property set to `rotate(-25deg)`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-eye')?.transform === 'rotate(-25deg)')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-eye')?.transform, 'rotate(-25deg)');
```
# --seed--
@@ -16,25 +16,25 @@ Using a class selector, give your `.cat-left-inner-eye` element a width of `10px
You should have a `.cat-left-inner-eye` selector.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye'))
assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye'));
```
Your `.cat-left-inner-eye` selector should have a `width` set to `10px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.width === '10px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.width, '10px');
```
Your `.cat-left-inner-eye` selector should have a `height` set to `20px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.height === '20px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.height, '20px');
```
Your `.cat-left-inner-eye` selector should have a `background-color` set to `#fff`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.backgroundColor === 'rgb(255, 255, 255)')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-left-inner-eye')?.backgroundColor, 'rgb(255, 255, 255)');
```
# --seed--