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: personal dashboard #8343

Merged
merged 2 commits into from
Oct 2, 2024
Merged

test: personal dashboard #8343

merged 2 commits into from
Oct 2, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Oct 2, 2024

About the changes

Testing the entire PersonalDashboard component
Screenshot 2024-10-02 at 15 29 43

Covered areas:

  • welcome username
  • explanation message
  • projects list with flags, members, health and project name
  • project insights
  • event
  • your project role
  • favorited flags
  • default metrics environment
  • default metrics period
  • no metrics info
  • onboarding cases (create flag, connect sdk, no flags)

Next PRs will cover other areas like project owner (couldn't get it to work in this test) or viewer with no projects

Important files

I had to mock HTMLCanvasElement.prototype.getContext to remove errors from the chart library

Discussion points

Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 2, 2024 2:14pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Oct 2, 2024 2:14pm

Copy link
Contributor

github-actions bot commented Oct 2, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

'We have gathered projects and flags you have favorited or owned',
);
await screen.findByText('Project Insight');
await screen.findByText('70%');
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
await screen.findByText('70%');
await screen.findByText('70%'); // avg health past window

@kwasniew kwasniew merged commit c1dde76 into main Oct 2, 2024
10 of 11 checks passed
@kwasniew kwasniew deleted the test-personal-dashboard branch October 2, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants