November 2018
Beginner
502 pages
10h 22m
English
Now that we have got the gist of how to write robust tests, let's add a second test to check that no validation errors are shown when the form is filled incorrectly:
describe("ContactUs", () => { test("When submit without filling in fields should display errors", () => { ... }); test("When submit after filling in fields should submit okay", () => { // TODO - render component, fill in fields, submit the form and check there are no errors });});
test("When submit after filling in fields should submit okay", () => { const ...Read now
Unlock full access