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>
This commit is contained in:
29
frontend/tests/e2e/pages/dashboard.page.ts
Normal file
29
frontend/tests/e2e/pages/dashboard.page.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
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"]')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user