Description
No automated test currently renders any part of the app with dir="rtl" set, so regressions in RTL readiness (overflow, misaligned icons, clipped text) would only be caught manually, if at all, ahead of eventual locale support.
Requirements and context
- Add a Playwright spec that forces dir="rtl" on the html element and loads the dashboard route
- Assert no element overflows its container and no text is visually clipped
- Capture a screenshot artifact for manual visual review on failure
- Must be accessible (WCAG 2.1 AA), responsive, and consistent with existing design tokens
- Should be tested and easy to review
Suggested execution
Fork the repo and create a branch
git checkout -b test/rtl-dashboard-smoke
Implement changes
- Update/Write component(s):
app/layout.tsx
- Add/Update tests:
tests/dashboard-rtl.spec.ts
- Add documentation:
CONTRIBUTING.md
- Annotate accessibility (contrast, keyboard nav, ARIA)
- Validate responsive behavior across breakpoints (sm 640, md 768, lg 1024, xl 1280)
Test and commit
- Run tests:
pnpm test (or the repo's test command)
- Cover edge cases (empty/error/loading states, long text, RTL, dark mode)
- Include before/after screenshots and accessibility notes
Example commit message
test: add an RTL smoke test for the dashboard shell
Guidelines
- WCAG 2.1 AA compliance
- Clear documentation and spec hand-off
- Timeframe: 96 hours
Description
No automated test currently renders any part of the app with dir="rtl" set, so regressions in RTL readiness (overflow, misaligned icons, clipped text) would only be caught manually, if at all, ahead of eventual locale support.
Requirements and context
Suggested execution
Fork the repo and create a branch
Implement changes
app/layout.tsxtests/dashboard-rtl.spec.tsCONTRIBUTING.mdTest and commit
pnpm test(or the repo's test command)Example commit message
Guidelines