Files
the-other-dude/frontend/tests/e2e/pages/dashboard.page.ts
Jason Staack b840047e19 feat: The Other Dude v9.0.1 — full-featured email system
ci: add GitHub Pages deployment workflow for docs site

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 19:30:44 -05:00

30 lines
590 B
TypeScript

import type { Page } from '@playwright/test'
/**
* Page Object Model for the fleet dashboard (/).
* Encapsulates selectors for dashboard elements.
*/
export class DashboardPage {
constructor(private page: Page) {}
async goto() {
await this.page.goto('/')
}
get heading() {
return this.page.getByRole('heading').first()
}
get sidebar() {
return this.page.locator('nav').first()
}
get deviceRows() {
return this.page.locator('table tbody tr, [role="row"]')
}
get kpiCards() {
return this.page.locator('[class*="card"], [class*="Card"]')
}
}