Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("then all required fields are shown in red, meaning error", () => {
helper.clickWhenClickable(contactPage.form.submitButton);
expect(contactPage.nameField.getAttribute("warning-color")).toEqual("red");
expect(contactPage.messageField.getAttribute("warning-color")).toEqual("red");
});
});