-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
rename data-cy selectors to data-testid to match playwright default locators #12363
base: master
Are you sure you want to change the base?
rename data-cy selectors to data-testid to match playwright default locators #12363
Conversation
… default locators
… default locators Signed-off-by: walter <[email protected]>
…m/AmTryingMyBest/meshery into chore/walter/remove_cypress_files
Yay, your first pull request! 👍 A contributor will be by to give feedback soon. In the meantime, you can find updates in the #github-notifications channel in the community Slack. |
View in catalog, Edit in playground or learn how to interpret Meshery Designs |
@AmTryingMyBest |
// @ianrwhitney |
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.
would you be able to cleanup the whitespace changes? Also are these ids used anywhere? Any tests that will break by just chaning the id and not the test.
@@ -210,7 +210,7 @@ const MesherySettingsEnvButtons = () => { | |||
marginRight: '2rem', | |||
}} | |||
disabled={!CAN(keys.ADD_CLUSTER.action, keys.ADD_CLUSTER.subject)} | |||
data-cy="btnResetDatabase" | |||
data-testid="btnResetDatabase" |
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.
looks like we have a mix of camel case and kebab case. Any way we can align those?
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.
@ianrwhitney I made these changes. All names are now written in kebab case. :)
… default locators Signed-off-by: walter <[email protected]>
Signed-off-by: walter <[email protected]>
Signed-off-by: walter <[email protected]>
Signed-off-by: walter <[email protected]>
Signed-off-by: walter <[email protected]>
🚀 Preview for commit 4c83a30 at: https://67165d042490123e7dc3df95--meshery-docs-preview.netlify.app |
@ianrwhitney I did the clean up for the whitespaces using |
@AmTryingMyBest you'll want to resync your fork and this branch with the latest changes in this upstream repo. A description of this process can be found in CONTRIBUTING.MD. |
END-TO-END TESTS
📦 Test Result Summary
⌛ Duration: 3 minutes and 39 seconds Overall Result: 👍 All tests passed. [Show/Hide] Test Result Details
|
There were some remnants of elements that had the default locator for cypress
data-cy
I renamed these to
data-testid
to match the default locator for playwright.This PR fixes this issue
Signed commits