chore(curriculum): Cat painting workshop updated to use specific assert methods step 36-37 (#60170)

This commit is contained in:
Arakhsh Qanit
2025-05-06 13:47:30 +05:00
committed by GitHub
parent e5051d472e
commit c55e98d3ee
2 changed files with 7 additions and 7 deletions

View File

@@ -14,25 +14,25 @@ It's time to work on the right inner ear. Using a class selector, give your `.ca
You should have a `.cat-right-inner-ear` selector.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear'))
assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear'))
```
Your `.cat-right-inner-ear` selector should have a `border-left` property set to `20px solid transparent`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderLeft === '20px solid transparent')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderLeft, '20px solid transparent')
```
Your `.cat-right-inner-ear` selector should have a `border-right` property set to `20px solid transparent`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderRight === '20px solid transparent')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderRight, '20px solid transparent')
```
Your `.cat-right-inner-ear` selector should have a `border-bottom` property set to `40px solid #3b3b4f`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottom === '40px solid rgb(59, 59, 79)')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.borderBottom, '40px solid rgb(59, 59, 79)')
```
# --seed--

View File

@@ -14,19 +14,19 @@ Move the right inner ear into position with a `position` property set to `absolu
Your `.cat-right-inner-ear` selector should have a `position` property set to `absolute`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.position === 'absolute')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.position, 'absolute')
```
Your `.cat-right-inner-ear` selector should have a `top` property set to `22px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.top === '22px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.top, '22px')
```
Your `.cat-right-inner-ear` selector should have a `left` property set to `-20px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.left === '-20px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-right-inner-ear')?.left, '-20px')
```
# --seed--