chore(curriculum): update asserts in workshop cat painting steps 75–77 (#60721)

This commit is contained in:
Lalit Narayan Yadav
2025-06-05 18:11:01 +05:30
committed by GitHub
parent e7a712351e
commit 2bb4c5565c
3 changed files with 9 additions and 9 deletions

View File

@@ -14,25 +14,25 @@ Now you will work on moving the right whiskers into place. Use class selector to
You should have a `.cat-whisker-right-top` selector.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top'))
assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top'));
```
Your `.cat-whisker-right-top` selector should have a `position` property set to `absolute`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.position === 'absolute')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.position, 'absolute');
```
Your `.cat-whisker-right-top` selector should have a `top` property set to `120px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.top === '120px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.top, '120px');
```
Your `.cat-whisker-right-top` selector should have a `left` property set to `109px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.left === '109px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.left, '109px');
```
# --seed--

View File

@@ -14,7 +14,7 @@ Rotate the top-right whisker at -10 degrees.
Your `.cat-whisker-right-top` selector should have a `transform` property set to `rotate(-10deg)`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.transform === 'rotate(-10deg)')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-top')?.transform, 'rotate(-10deg)');
```
# --seed--

View File

@@ -14,25 +14,25 @@ Use a class selector to target the `.cat-whisker-right-middle` element, then mov
You should have a `.cat-whisker-right-middle` selector.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle'))
assert.exists(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle'));
```
Your `.cat-whisker-right-middle` selector should have a `position` property set to `absolute`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.position === 'absolute')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.position, 'absolute');
```
Your `.cat-whisker-right-middle` selector should have a `top` property set to `127px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.top === '127px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.top, '127px');
```
Your `.cat-whisker-right-middle` selector should have a `left` property set to `109px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.left === '109px')
assert.equal(new __helpers.CSSHelp(document).getStyle('.cat-whisker-right-middle')?.left, '109px');
```
# --seed--