#15372·meshery

[UI] Migrate Playwright models spec to use Playwright Page Object Model

Author: ianrwhitneyCreated Jul 15, 2025Updated Sep 18, 2026
Labelskind/enhancementhelp wantedgood first issuelanguage/javascriptcomponent/uiframework/react

Current Behavior

We are currently maintaining Playwright E2E tests with inline selectors and interactions. This results in test files that are tightly coupled to UI details. This issue will cover adding one page for the models spec test. https://github.com/meshery/meshery/blob/master/ui/tests/e2e/models.spec.js

Desired Behavior

Refactor Playwright test suites to follow the Page Object Model (POM) design pattern. https://playwright.dev/docs/pom

Implementation

Introduce a pages/ directory inside the Playwright test suite ( ./tests/pages/ ). The class should encapsulate locators and expose functions with relevant page interactions.


Contributor Guides and Handbook