Skip to content

Conversation

@sirbully
Copy link
Contributor

@sirbully sirbully commented Jun 29, 2025

Resolves #98

What changed 🧐

Added code of conduct component test

How did you test it? 🧪

Check if the Code of Conduct is rendered properly.

@sirbully sirbully self-assigned this Jun 29, 2025
@sirbully sirbully requested a review from ann-kilzer as a code owner June 29, 2025 11:30
Copy link
Collaborator

@ann-kilzer ann-kilzer left a 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

@sirbully sirbully requested a review from ann-kilzer August 11, 2025 13:32
Comment on lines +57 to +62
// 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')
})
Copy link
Contributor Author

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

Copy link
Collaborator

@ann-kilzer ann-kilzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sirbully sirbully merged commit 461eaea into main Aug 13, 2025
6 checks passed
@sirbully sirbully deleted the code-of-conduct-tests branch August 13, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code of Conduct Unit Tests

3 participants