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

fix: [M3-8686] - fix Buttons data-qa attributes #11035

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

abailly-akamai
Copy link
Contributor

@abailly-akamai abailly-akamai commented Oct 2, 2024

Description 📝

Fixing a console error that has bothered me for a long time!

Screenshot 2024-10-02 at 10 43 14

Changes 🔄

  • fix ActionPanel PrimaryButton data-qa attribute in SingleTextfieldForm
  • updates unit and e2e tests

How to test 🧪

Reproduction steps

  • navigate to and reload /profile/display
  • notice console error

Verification steps

  • navigate to and reload /profile/display
  • confirm console error gone
  • confirm unit and e2e suites are happy

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@abailly-akamai abailly-akamai changed the title fix: [M3-8686] - fix Buttons data-qa attributes fix: [M3-8686] - fix ActionPanel PrimaryButton data-qa attribute Oct 2, 2024
@abailly-akamai abailly-akamai marked this pull request as ready for review October 2, 2024 14:49
@abailly-akamai abailly-akamai requested review from a team as code owners October 2, 2024 14:49
@abailly-akamai abailly-akamai requested review from jdamore-linode, bnussman-akamai and hkhalil-akamai and removed request for a team October 2, 2024 14:49
@@ -93,7 +93,7 @@ export const SingleTextFieldForm = React.memo((props: Props) => {
/>
<ActionsPanel
primaryButtonProps={{
'data-testid': 'Button',
'data-testid': 'button',
Copy link
Contributor Author

@abailly-akamai abailly-akamai Oct 2, 2024

Choose a reason for hiding this comment

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

This is 2/2 of the main changes

Copy link
Contributor

@jdamore-linode jdamore-linode left a comment

Choose a reason for hiding this comment

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

🙌 Thanks @abailly-akamai!

I never noticed the console error, but I have noticed the random uppercased "Button" test ID -- happy to see this change!

@abailly-akamai abailly-akamai changed the title fix: [M3-8686] - fix ActionPanel PrimaryButton data-qa attribute fix: [M3-8686] - fix Buttons data-qa attributes Oct 2, 2024
@@ -158,7 +158,7 @@ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
color={color}
compactX={compactX}
compactY={compactY}
data-testid={rest['data-testid'] || 'Button'}
data-testid={rest['data-testid'] || 'button'}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is 1/2 of the main changes

Copy link

github-actions bot commented Oct 2, 2024

Coverage Report:
Base Coverage: 87.12%
Current Coverage: 87.12%

Copy link
Member

@bnussman-akamai bnussman-akamai left a comment

Choose a reason for hiding this comment

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

🙏 🚀

@abailly-akamai abailly-akamai merged commit 826c1fb into linode:develop Oct 2, 2024
20 checks passed
Copy link

cypress bot commented Oct 2, 2024

Cloud Manager E2E    Run #6609

Run Properties:  status check passed Passed #6609  •  git commit 826c1fb454: fix: [M3-8686] - fix Buttons data-qa attributes (#11035)
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6609
Run duration 27m 36s
Commit git commit 826c1fb454: fix: [M3-8686] - fix Buttons data-qa attributes (#11035)
Committer Alban Bailly
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 409
View all changes introduced in this branch ↗︎

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.

3 participants