Question: please write unit tests for a registration page in javascript using jest network. these are the test cases :# TEST CASES TO VERIFY THE REGISTRATION
please write unit tests for a registration page in javascript using jest network.
these are the test cases :# TEST CASES TO VERIFY THE "REGISTRATION" PAGE
To verify if the registration page works properly we need to misuse it to confirm that the page will correctly verify the informations entered by the user.
## Page specific tests:
The first test will be trying to register with something that is not an email address. Success if the page shows the please enter a valid email address notification, failure if the registration is successful.
The second test will be trying to use a password that does not meet the requirements. Success if the page shows the Password do not meet the requirements or passwords do not match notification, failure if the registration is successful.
The third test will be trying to register with two different passwords. Success if the page shows the Password do not meet the requirements or passwords do not match notification, failure if the registration is successful.
The fourth test is clicking on the show password button. Success if the password is shown, failure if the password is not shown.
and these is the page code in js html css please study the code and wite unit tests using javascript node js using jest framework. this is the css code for the registration page :body
fontfamily: Arial, sansserif;
backgroundimage: urlbookswpjpg;
backgroundsize: cover;
backgroundrepeat: norepeat;
margin: ;
padding: ;
display: flex;
justifycontent: center;
alignitems: center;
height: vh;
container
position: relative;
background: lineargradientto bottom, crimson, #fff;
borderradius: px;
boxshadow: px rgba;
padding: px;
width: px;
h
marginbottom: px;
color: #;
textalign: center;
formgroup
marginbottom: px;
inputtype"text"
inputtype"password"
width: calcpx;
padding: px;
border: px solid #ccc;
borderradius: px;
backgroundcolor: #fff;
color: #;
buttontype"submit"
backgroundcolor: #ff;
color: #fff;
padding: px px;
border: none;
borderradius: px;
cursor: pointer;
position: absolute;
bottom: px;
right: px;
buttontype"submit":hover
backgroundcolor: #cc;
notification
position: absolute;
top: px;
left: ;
transform: translateX;
backgroundcolor: #;
color: #fff;
padding: px px;
borderradius: px;
display: none;
showpasswordcontainer
position: relative;
margintop: px;
textalign: right;
this is the html code for the registration page:
BookHub Register
Password must contain at least one lowercase letter.
Password must contain at least one uppercase letter.
Password must contain at least one special character.
Password must contain at least one number.
Password must be at least characters long.
By creating an account you agree to our Terms & Privacy.Already have an account? Sign in
Password must contain at least one lowercase letter.
Password must contain at least one uppercase letter.
Password must contain at least one special character.
Password must contain at least one number.
Password must be at least characters long.
By creating an account you agree to our Terms & Privacy.Already have an account? Sign in
Password must contain at least one lowercase letter.
Password must contain at least one uppercase letter.
Password must contain at least one special character.
Password must contain at least one number.
Password must be at least characters long.
By creating an account you agree to our Terms & Privacy.Already have an account? Sign in
Password must contain at least one lowercase letter.
Password must contain at least one uppercase letter.
Password must contain at least one special character.
Password must contain at least one number.
Password must be at least characters long.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
