Skip to content
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

Open
wants to merge 11 commits into
base: rc-0.3.0
Choose a base branch
from

Conversation

ChrisWeissmann
Copy link
Contributor

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.

<Input
placeholder="Search"
onChange={handleSearchInputChange}
data-testId={`${dtoClass.name}-table-search`}
Copy link
Contributor

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"

Copy link
Contributor Author

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

@@ -69,7 +69,7 @@ const GenericTag = <T extends Record<string, string | number>>({
}

return (
<Tag color={color}>
<Tag color={color} data-testId="tag!">
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@ChrisWeissmann ChrisWeissmann force-pushed the feature/cypress-githubaction branch from e01bba6 to ba5af63 Compare November 18, 2024 12:58
Base automatically changed from rc-0.2.0 to main January 28, 2025 22:37
@thanaParis thanaParis changed the base branch from main to rc-0.3.0 February 3, 2025 15:34
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.

2 participants