-
Notifications
You must be signed in to change notification settings - Fork 5
Code of conduct test #157
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
Code of conduct test #157
Conversation
ann-kilzer
left a comment
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.
With our tests, let's really think about what kind of failures we might see as the code changes over time. This page relies heavily on i18n and translations, so it would be good to see some assertions around the body text showing up correctly. We don't need to check every single word, but ensuring a few key sentences appear would improve confidence.
Bonus points if you are able to ensure that the text appears in both Japanese and English
| // FIXME: The other headings are have not been translated yet, testing the English headings for now | ||
| expect(headings[1]).toHaveTextContent('Women in Software Engineering Japan Statement of Intent') | ||
| expect(headings[2]).toHaveTextContent('Code of Conduct for Women in Software Engineering Japan Events') | ||
| expect(headings[3]).toHaveTextContent('How to Report Harassment and Discrimination') | ||
| expect(headings[4]).toHaveTextContent('Periodic Review') | ||
| }) |
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.
as mentioned in the FIXME, no translations for this yet, perhaps it can be addressed in a separate PR
ann-kilzer
left a comment
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.
LGTM
Resolves #98
What changed 🧐
Added code of conduct component test
How did you test it? 🧪
Check if the Code of Conduct is rendered properly.