-
Notifications
You must be signed in to change notification settings - Fork 3
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
Github action with Cypress #72
base: rc-0.3.0
Are you sure you want to change the base?
Conversation
<Input | ||
placeholder="Search" | ||
onChange={handleSearchInputChange} | ||
data-testId={`${dtoClass.name}-table-search`} |
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.
it may be better to use dtoResourceType
instead of dtoClass.name
to avoid the "Mysterious 2" that shows up. For example, MeterValues class would result in "MeterValues2"
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.
I can make that change in table-wrapper. But for instance inside the form getting to the submit button we don't have the resourceType. We would only have the parentRecord
src/components/tag/index.tsx
Outdated
@@ -69,7 +69,7 @@ const GenericTag = <T extends Record<string, string | number>>({ | |||
} | |||
|
|||
return ( | |||
<Tag color={color}> | |||
<Tag color={color} data-testId="tag!"> |
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.
maybe we can use useId()
hook so that we can have a unique id? I am worried bout this "tag" being in multiple places, also what's up with the exclamation at the end there? It seems that the exclamation will be part of the string?
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.
Yea, that was my oversight. I had gone down a rabbit hole and forgot to clean this up.
…estability with `data-testId`
… Fix linter error
e01bba6
to
ba5af63
Compare
For now I had to add installing core manually until it's published.
Cypress runs with Chrome which should be sufficient for now.
Added some sample tests and added data-testId to identify the elements.