feat(curriculum): add extension tests for css-flexbox curriculum modules (#40473)
* feat(curriculum): add extension tests for css-flexbox curriculum modules * apply suggestions from code review Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com> * fix: reorder tests Moves the test that asserts the presence of the follow button to the top of the order. Signed-off-by: nhcarrigan <nhcarrigan@gmail.com> Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
This commit is contained in:
@ -19,6 +19,12 @@ Add the CSS property `display: flex` to all of the following items - note that t
|
||||
|
||||
# --hints--
|
||||
|
||||
Your `.follow-btn` should be rendered on the page. Be sure to turn off any extensions such as ad blockers.
|
||||
|
||||
```js
|
||||
assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none');
|
||||
```
|
||||
|
||||
Your `header` should have a `display` property set to `flex`.
|
||||
|
||||
```js
|
||||
|
@ -17,6 +17,12 @@ Add the CSS property `flex-direction` to the header's `.profile-name` element an
|
||||
|
||||
# --hints--
|
||||
|
||||
Your `.follow-btn` should be rendered on the page. Be sure to turn off any extensions such as ad blockers.
|
||||
|
||||
```js
|
||||
assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none');
|
||||
```
|
||||
|
||||
The `.profile-name` element should have a `flex-direction` property set to column.
|
||||
|
||||
```js
|
||||
|
@ -17,6 +17,12 @@ Add the CSS property `flex-direction` to both the `header` and `footer` and set
|
||||
|
||||
# --hints--
|
||||
|
||||
Your `.follow-btn` should be rendered on the page. Be sure to turn off any extensions such as ad blockers.
|
||||
|
||||
```js
|
||||
assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none');
|
||||
```
|
||||
|
||||
The `header` should have a `flex-direction` property set to row.
|
||||
|
||||
```js
|
||||
|
@ -17,6 +17,12 @@ Add the CSS property `align-items` to the header's `.follow-btn` element. Set th
|
||||
|
||||
# --hints--
|
||||
|
||||
Your `.follow-btn` should be rendered on the page. Be sure to turn off any extensions such as ad blockers.
|
||||
|
||||
```js
|
||||
assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none');
|
||||
```
|
||||
|
||||
The `.follow-btn` element should have the `align-items` property set to a value of `center`.
|
||||
|
||||
```js
|
||||
|
@ -17,6 +17,12 @@ Add the CSS property `justify-content` to the header's `.profile-name` element a
|
||||
|
||||
# --hints--
|
||||
|
||||
Your `.follow-btn` should be rendered on the page. Be sure to turn off any extensions such as ad blockers.
|
||||
|
||||
```js
|
||||
assert($('.follow-btn').length > 0 && $('.follow-btn').css('display') !== 'none');
|
||||
```
|
||||
|
||||
The `.profile-name` element should have the `justify-content` property set to any of these values: `center`, `flex-start`, `flex-end`, `space-between`, `space-around`, or `space-evenly`.
|
||||
|
||||
```js
|
||||
|
Reference in New Issue
Block a user