Skip to content

Add a dir="rtl" Playwright smoke test rendering the dashboard shell without clipped content #821

Description

@Jagadeeshftw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSGrantFox open-source programMaybe RewardedGrantFox: potentially rewarded contributionOfficial Campaign | FWC26GrantFox official campaign issueStellar WaveIssues in the Stellar wave programaccessibilityAccessibility (WCAG)frontendFrontend implementationtestsAdd or improve tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions