-
Notifications
You must be signed in to change notification settings - Fork 39
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
✅ Add E2E tests for toolbar zoom controls #697
Conversation
|
4a09eee
to
13dbb22
Compare
CI Feedback 🧐(Feedback updated until commit e19d54a)A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
LGTM! but I wrote some comments.
frontend/packages/erd-core/src/components/ERDRenderer/Toolbar/DesktopToolbar.tsx
Outdated
Show resolved
Hide resolved
test.beforeEach(async ({ page }) => { | ||
await page.goto('/') | ||
const cookieButton = page.getByRole('button', { | ||
name: 'Accept All Cookies', | ||
}) | ||
await cookieButton.click({ timeout: 1000, force: true }).catch(() => {}) | ||
}) |
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.
This looks like it should only be run once at the beginning of every test.
ref: Global setup and teardown | Playwright
Of course, it can be handled by another PR.
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.
I think so, I'll do by another PR👍
f4ad6e5
to
0596310
Compare
e19d54a
to
49a4744
Compare
User description
Related Issue
Add E2E tests for toolbar zoom controls.
Testing
Other Information
PR Type
Tests, Enhancement
Description
Added E2E tests for toolbar zoom controls.
Enhanced accessibility with
aria-label
attributes.Verified zoom in/out functionality with Playwright tests.
Changes walkthrough 📝
toolbar.test.ts
Added E2E tests for toolbar functionality
frontend/packages/e2e/tests/e2e/toolbar.test.ts
DesktopToolbar.tsx
Added `aria-label` for desktop toolbar
frontend/packages/erd-core/src/components/ERDRenderer/Toolbar/DesktopToolbar.tsx
aria-label
for desktop toolbar.ZoomControls.tsx
Added `aria-label` for zoom controls
frontend/packages/erd-core/src/components/ERDRenderer/Toolbar/ZoomControls/ZoomControls.tsx
aria-label
for zoom in/out buttons.