-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation check when booking onto events #207
Conversation
You'll also want to add a couple of tests to the |
src/test/pages/EventDetails.test.tsx
Outdated
const stageInput = screen.getByRole("textbox", { name: "Stage" }); | ||
expect(stageInput).toBeInvalid(); | ||
const examBoardInput = screen.getByRole("textbox", { name: "Exam board" }); | ||
expect(examBoardInput).toBeInvalid(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These could be done like this to be a little more concise:
[firstNameInput, familyNameInput, stageInput, examBoardInput].forEach((each)=>expect(each).toBeInvalid())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorted
Quality Gate passedIssues Measures |
https://github.com/isaaccomputerscience/isaac-cs-issues/issues/439