- Replace
<your_account>
with your Github username in the link - Follow this instructions
- Run
npm run test
command to test your code; - Run
npm run test:only -- -n
to run fast test ignoring linter; - Run
npm run test:only -- -l
to run fast test with additional info in console ignoring linter.
- Run
In this task, you should create 3 promises.
- The first promise should be resolved on a
click
indocument
or rejected in 3 seconds if not clicked. Message:First promise was resolved
,First promise was rejected
- The second promise should be resolved only on
left
orright
click ondocument
.middle
button should be ignored. Message:Second promise was resolved
. - The third promise should be resolved only if both
left
andright
clicks happened. Message:Third promise was resolved
- Notify users about resolved or rejected promises using DOM. For messages add QA attributes
data-qa="notification"
, and classessuccess
/warning
depending on the result.
That's all.