Skip to content

Commit 88ab14e

Browse files
SupravisorDario-DC
andauthored
fix(curriculum): add confidential and top secret user stories and tests (freeCodeCamp#59673)
Co-authored-by: Dario-DC <105294544+Dario-DC@users.noreply.github.com>
1 parent 6a2b95d commit 88ab14e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

curriculum/challenges/english/25-front-end-development/lab-confidential-email-page/66bba6fff611169359d9d36a.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Fulfill the user stories below and get all the tests to pass to complete the lab
1818
1. You should have two `div` elements, one with an id of `confidential` and the other with an id of `top-secret`, within your `#email` element.
1919
1. Your `#confidential` and `#top-secret` elements should have a `display` of `inline-block`.
2020
1. Your `#confidential` and `#top-secret` elements should have a `padding`, a left margin, and a `border`.
21+
1. The `#confidential` element should have the text `CONFIDENTIAL`.
22+
1. The `#top-secret` element should have the text `TOP SECRET`.
2123
1. Your `#confidential` and `#top-secret` elements should be rotated using a CSS transform.
2224
1. You should have at least three paragraph elements within your `#email` element.
2325
1. You should have at least three `span` elements with a class of `blurred`, within your paragraph elements.
@@ -129,6 +131,18 @@ Your `#top-secret` element should have a `border`.
129131
assert.notEqual(window.getComputedStyle(document.querySelector('#top-secret'))?.borderWidth, '0px');
130132
```
131133
134+
Your `#confidential` element's text should be `CONFIDENTIAL`. You have either omitted the text, or have a typo.
135+
136+
```js
137+
assert.equal(document.querySelector('#confidential').innerText.toLowerCase(), 'confidential' );
138+
```
139+
140+
Your `#top-secret` element's text should be `TOP SECRET`. You have either omitted the text, or have a typo.
141+
142+
```js
143+
assert.equal(document.querySelector('#top-secret').innerText.toLowerCase(), 'top secret' );
144+
```
145+
132146
Your `#confidential` element should use a CSS `transform` to rotate the element.
133147
134148
```js

0 commit comments

Comments
 (0)