Skip to content

flexmonster/framework-samples-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

framework-samples-tests

Playwright E2E tests for the Flexmonster Next.js sample app.

Requirements

  • Node.js
  • The sample app running at http://localhost:3000 (or set BASE_URL)

Setup

npm install
npx playwright install

Running tests

npm test

Updating snapshots

npm test:update-snapshots

To run against a different URL:

BASE_URL=http://localhost:4000 npm test

For Win

$env:BASE_URL="http://localhost:5173"; npm test

Test structure

tests/
├── 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors