Playwright E2E tests for the Flexmonster Next.js sample app.
- Node.js
- The sample app running at
http://localhost:3000(or setBASE_URL)
npm install
npx playwright installnpm testnpm test:update-snapshotsBASE_URL=http://localhost:4000 npm testFor Win
$env:BASE_URL="http://localhost:5173"; npm testtests/
├── testWithDataSource.ts # Base fixture — navigates to / before each test
├── fixtures/
│ ├── testTable.ts # Flexmonster grid fixture (flatTable, pivotTable)
│ └── testToolbar.ts # Flexmonster toolbar fixture
├── homepage.spec.ts # Page content, pivot table, flat table
└── navbar.spec.ts # Top navigation bar
The testTable fixture exposes two scoped grid components (flatTable, pivotTable) and helpers switchToFlatTable / switchToPivotTable for toggling the active view via the toolbar.