Skip to content

added test-id to button element - related to pr2496 #2534

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

Merged
merged 3 commits into from
Jul 15, 2025
Merged

added test-id to button element - related to pr2496 #2534

merged 3 commits into from
Jul 15, 2025

Conversation

omehes
Copy link
Contributor

@omehes omehes commented Jul 14, 2025

relates to #2496
added test-id as per discussion with @Dantemss
https://openstax.atlassian.net/browse/CORE-988

@omehes omehes requested a review from a team as a code owner July 14, 2025 18:29
@omehes omehes requested a review from jivey July 14, 2025 18:29
@TomWoodward TomWoodward temporarily deployed to rex-web-testid-alvas2moavqoilc July 14, 2025 18:29 Inactive
Copy link
Member

@jivey jivey left a comment

Choose a reason for hiding this comment

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

This looks good but the snapshots need to be updated too (yarn test -u I think?) and there's a tiny indentation thing.

<Styled.CloseIconButton onClick={this.props.onClose}>
<Styled.CloseIconButton
onClick={this.props.onClose}
data-testid='close-search-noresults'
Copy link
Member

Choose a reason for hiding this comment

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

162 and 163 should be indented

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jivey I think they are indented, it's just how it is shown here in github, no?
Image 7-15-25 at 8 36 AM

Copy link
Member

Choose a reason for hiding this comment

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

I mean indented 2 more spaces so visually it's easy to tell where the tag properties are - here's an example:

aria-label={useIntl().formatMessage({id: 'i18n:search-results:bar'})}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok. on it. missed that...

@TomWoodward TomWoodward temporarily deployed to rex-web-testid-alvas2moavqoilc July 15, 2025 15:56 Inactive
@omehes
Copy link
Contributor Author

omehes commented Jul 15, 2025

All tests passed. Those 2 playwright tests are known and waiting for updates and deploy of rex

@omehes omehes requested a review from jivey July 15, 2025 16:18
@TomWoodward TomWoodward temporarily deployed to rex-web-testid-alvas2moavqoilc July 15, 2025 16:34 Inactive
@omehes omehes merged commit 5fe4eb5 into main Jul 15, 2025
7 of 8 checks passed
@omehes omehes deleted the testid branch July 15, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants