Created
July 16, 2021 04:10
-
-
Save mtreacy002/9d8b61db394ff97e7c142be36f4eaa6b to your computer and use it in GitHub Desktop.
Failed tests new design SignUp pr 262
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAIL src/tests/Register.test.js | |
● allows the user to register successfully | |
Unable to find an element with the placeholder text of: Full Name | |
<body> | |
<div> | |
<div | |
class="preloader" | |
/> | |
</div> | |
</body> | |
33 | render(<Router><Register /></Router>) | |
34 | | |
> 35 | fireEvent.change(screen.getByPlaceholderText('Full Name'), { | |
| ^ | |
36 | target: { value: 'My Name' }, | |
37 | }) | |
38 | fireEvent.change(screen.getByPlaceholderText('Username'), { | |
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:34:12) | |
at args (node_modules/@testing-library/dom/dist/query-helpers.js:71:38) | |
at getByPlaceholderText (node_modules/@testing-library/dom/dist/query-helpers.js:54:17) | |
at Object.<anonymous>.it (src/tests/Register.test.js:35:29) | |
● blocks the user to register without password confirmation | |
Unable to find an element with the placeholder text of: Full Name | |
<body> | |
<div> | |
<div | |
class="preloader" | |
/> | |
</div> | |
</body> | |
75 | render(<Router><Register /></Router>) | |
76 | | |
> 77 | fireEvent.change(screen.getByPlaceholderText('Full Name'), { | |
| ^ | |
78 | target: { value: 'My Name' }, | |
79 | }) | |
80 | fireEvent.change(screen.getByPlaceholderText('Username'), { | |
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:34:12) | |
at args (node_modules/@testing-library/dom/dist/query-helpers.js:71:38) | |
at getByPlaceholderText (node_modules/@testing-library/dom/dist/query-helpers.js:54:17) | |
at Object.<anonymous>.it (src/tests/Register.test.js:77:29) | |
● handles password toggle | |
Unable to find an element with the placeholder text of: Password | |
<body> | |
<div> | |
<div | |
class="preloader" | |
/> | |
</div> | |
</body> | |
114 | render(<Router><Register /></Router>) | |
115 | | |
> 116 | expect(screen.getByPlaceholderText('Password').type).toEqual("password") | |
| ^ | |
117 | expect(screen.getByPlaceholderText('Confirm Password').type).toEqual("password") | |
118 | | |
119 | fireEvent.click(screen.getByLabelText('Show Password', { name: "show_password_checkbox" }), { | |
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:34:12) | |
at args (node_modules/@testing-library/dom/dist/query-helpers.js:71:38) | |
at getByPlaceholderText (node_modules/@testing-library/dom/dist/query-helpers.js:54:17) | |
at Object.<anonymous>.it (src/tests/Register.test.js:116:19) | |
● checks empty field warning | |
Unable to find a label with the text of: Name : | |
<body> | |
<div> | |
<div | |
class="preloader" | |
/> | |
</div> | |
</body> | |
128 | render(<Router><Register /></Router>) | |
129 | | |
> 130 | fireEvent.change(screen.getByLabelText("Name :", { selector: "input" }), { | |
| ^ | |
131 | target: { value: '' }, | |
132 | }) | |
133 | | |
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:34:12) | |
at getAllByLabelText (node_modules/@testing-library/dom/dist/queries/label-text.js:121:38) | |
at getByLabelText (node_modules/@testing-library/dom/dist/query-helpers.js:54:17) | |
at Object.<anonymous>.it (src/tests/Register.test.js:130:28) | |
● checks validation message warning | |
Unable to find a label with the text of: Name : | |
<body> | |
<div> | |
<div | |
class="preloader" | |
/> | |
</div> | |
</body> | |
166 | render(<Router><Register /></Router>) | |
167 | | |
> 168 | fireEvent.change(screen.getByLabelText("Name :", { selector: "input" }), { | |
| ^ | |
169 | target: { value: '%' }, | |
170 | }) | |
171 | | |
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:34:12) | |
at getAllByLabelText (node_modules/@testing-library/dom/dist/queries/label-text.js:121:38) | |
at getByLabelText (node_modules/@testing-library/dom/dist/query-helpers.js:54:17) | |
at Object.<anonymous>.it (src/tests/Register.test.js:168:28) | |
Test Suites: 1 failed, 2 passed, 3 total | |
Tests: 5 failed, 9 passed, 14 total | |
Snapshots: 0 total | |
Time: 4.269s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment