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

test: Fix unit tests depending on formatPercentage to reflect latest changes #11334

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

coliu-akamai
Copy link
Contributor

@coliu-akamai coliu-akamai commented Nov 26, 2024

Description 📝

Quick fix to address unit test failures - in #11294, formatPercent now adds an extra space

How to test 🧪

yarn test MetricsDisplay.test.tsx && yarn test statMetrics.test.ts
  • checks should pass (minus potential flaky tests)
Author Checklists

As an Author, to speed up the review process, I considered 🤔

👀 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


  • I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

  • All unit tests are passing
  • TypeScript compilation succeeded without errors
  • Code passes all linting rules

@coliu-akamai coliu-akamai added the Unit tests Improves unit test coverage label Nov 26, 2024
@coliu-akamai coliu-akamai self-assigned this Nov 26, 2024
@coliu-akamai coliu-akamai marked this pull request as ready for review November 26, 2024 19:43
@coliu-akamai coliu-akamai requested a review from a team as a code owner November 26, 2024 19:43
@coliu-akamai coliu-akamai requested review from bnussman-akamai and abailly-akamai and removed request for a team November 26, 2024 19:43
@coliu-akamai coliu-akamai changed the title test: Fix format percent unit tests to update latest changes test: Fix unit tests depending on formatPercentage to reflect latest changes Nov 26, 2024
@linode-gh-bot
Copy link
Collaborator

Cloud Manager UI test results

🎉 455 passing tests on test run #1 ↗︎

❌ Failing✅ Passing↪️ Skipped🕐 Duration
0 Failing455 Passing2 Skipped99m 57s

@coliu-akamai coliu-akamai added the Approved Multiple approvals and ready to merge! label Nov 26, 2024
@coliu-akamai coliu-akamai merged commit 6abe673 into linode:develop Nov 26, 2024
23 checks passed
Copy link

cypress bot commented Nov 26, 2024

Cloud Manager E2E    Run #6888

Run Properties:  status check passed Passed #6888  •  git commit 6abe673b80: test: Fix unit tests depending on formatPercentage to reflect latest changes (#1...
Project Cloud Manager E2E
Branch Review develop
Run status status check passed Passed #6888
Run duration 31m 30s
Commit git commit 6abe673b80: test: Fix unit tests depending on formatPercentage to reflect latest changes (#1...
Committer Connie Liu
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 6
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 455
View all changes introduced in this branch ↗︎

@coliu-akamai coliu-akamai deleted the fix-metrics-tests branch November 27, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Unit tests Improves unit test coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants