chore(curriculum): update assertions in cat painting workshop steps 38-39 (#60293)

This commit is contained in:
HaheeBahee
2025-05-15 01:18:18 +08:00
committed by GitHub
parent e8b8bb7a8e
commit b772485fe6
2 changed files with 8 additions and 8 deletions
@@ -14,25 +14,25 @@ As you did for the left inner ear, remove the sharp edges of the right inner ear
Your `.cat-right-inner-ear` selector should have a `border-bottom-right-radius` property set to `40%`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottomRightRadius === '40%')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottomRightRadius, '40%');
```
Your `.cat-right-inner-ear` selector should have a `border-bottom-left-radius` property set to `40%`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottomLeftRadius === '40%')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottomLeftRadius, '40%');
```
Your `.cat-right-inner-ear` selector should have a `border-top-left-radius` property set to `90px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderTopLeftRadius === '90px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderTopLeftRadius, '90px');
```
Your `.cat-right-inner-ear` selector should have a `border-top-right-radius` property set to `10px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderTopRightRadius === '10px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderTopRightRadius, '10px');
```
# --seed--
@@ -16,25 +16,25 @@ Create a `div` element with the class `cat-eyes`. Inside the `.cat-eyes` element
You should create a `div` element with the class `cat-eyes`.
```js
assert(document.querySelectorAll('.cat-eyes').length === 1);
assert.lengthOf(document.querySelectorAll('.cat-eyes'), 1);
```
You should create two `div` elements inside the `.cat-eyes` element.
```js
assert(document.querySelectorAll('.cat-eyes div').length === 2);
assert.lengthOf(document.querySelectorAll('.cat-eyes div'), 2);
```
The first `div` element inside the `.cat-eyes` element should have the class `cat-left-eye`.
```js
assert(document.querySelectorAll('.cat-eyes div')[0].classList.contains('cat-left-eye'));
assert.isTrue(document.querySelectorAll('.cat-eyes div')[0].classList.contains('cat-left-eye'));
```
The second `div` element inside the `.cat-eyes` element should have the class `cat-right-eye`.
```js
assert(document.querySelectorAll('.cat-eyes div')[1].classList.contains('cat-right-eye'));
assert.isTrue(document.querySelectorAll('.cat-eyes div')[1].classList.contains('cat-right-eye'));
```
# --seed--