Hi, im pretty sure my code is correct but the projects test aren’t passing. but on the screen they are.
-
When the #user-input
element contains 1 555-555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Valid US number: 1 555-555-5555"
.
-
Failed:When the #user-input
element contains 1 (555) 555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Valid US number: 1 (555) 555-5555"
.
-
Failed:When the #user-input
element contains 5555555555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Valid US number: 5555555555"
.
-
Failed:When the #user-input
element contains 555-555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Valid US number: 555-555-5555"
.
-
Failed:When the #user-input
element contains (555)555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Valid US number: (555)555-5555"
.
-
Failed:When the #user-input
element contains 1(555)555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Valid US number: 1(555)555-5555"
.
-
Failed:When the #user-input
element contains 555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 555-5555"
.
-
Failed:When the #user-input
element contains 5555555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 5555555"
.
-
Failed:When the #user-input
element contains 1 555)555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 1 555)555-5555"
.
-
Failed:When the #user-input
element contains 1 555 555 5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Valid US number: 1 555 555 5555"
.
-
Failed:When the #user-input
element contains 1 456 789 4444
and the #check-btn
element is clicked, the #results-div
element should contain the text "Valid US number: 1 456 789 4444"
.
-
Failed:When #user-input
contains 123**&!!asdf#
and #check-btn
is clicked, #results-div
should contain the text "Invalid US number: 123**&!!asdf#"
.
-
Failed:When the #user-input
element contains 55555555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 55555555"
.
-
Failed:When the #user-input
element contains (6054756961)
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: (6054756961)"
.
-
Failed:When the #user-input
element contains 2 (757) 622-7382
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 2 (757) 622-7382"
.
-
Failed:When the #user-input
element contains 0 (757) 622-7382
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 0 (757) 622-7382"
.
-
Failed:When the #user-input
element contains -1 (757) 622-7382
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: -1 (757) 622-7382"
.
-
Failed:When the #user-input
element contains 2 757 622-7382
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 2 757 622-7382"
.
-
Failed:When the #user-input
element contains 10 (757) 622-7382
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 10 (757) 622-7382"
.
-
Failed:When the #user-input
element contains 27576227382
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 27576227382"
.
-
Failed:When the #user-input
element contains (275)76227382
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: (275)76227382"
.
-
Failed:When the #user-input
element contains 2(757)6227382
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 2(757)6227382"
.
-
Failed:When the #user-input
element contains 2(757)622-7382
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 2(757)622-7382"
.
-
Failed:When the #user-input
element contains 555)-555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 555)-555-5555"
.
-
Failed:When the #user-input
element contains (555-555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: (555-555-5555"
.
-
Failed:When #user-input
contains (555)5(55?)-5555
and #check-btn
is clicked, #results-div
should contain the text "Invalid US number: (555)5(55?)-5555"
.
-
Failed:When the #user-input
element contains 55 55-55-555-5
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 55 55-55-555-5"
.
-
Failed:When the #user-input
element contains 11 555-555-5555
and the #check-btn
element is clicked, the #results-div
element should contain the text "Invalid US number: 11 555-555-5555"
.
and i do not know if its my regex.