Install
$ agentstack add skill-jeffsenso-prestashop-skills-create-playwright-page-objects ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
create-playwright-page-objects
Read @.ai/Component/Playwright/CONTEXT.md for the POM pattern and ui-testing-library architecture.
Page objects live in the ui-testing-library, not in the core repo.
1. Listing page object
Create bo{Domain}Page (extends the appropriate BO base page):
- Selectors: grid table, filter inputs, bulk action checkboxes, row action buttons, toggle switches, pagination
- Methods: all return values, never assert
getNumberOfElementInGrid(page): PromisefilterTable(page, filterBy, value): PromiseresetAndGetNumberOfLines(page): PromisegetTextColumn(page, row, column): PromisegoToAddNewPage(page): PromisegoToEditPage(page, row): PromisedeleteRow(page, row): Promise— returns alert textbulkAction(page, action): Promise— returns alert textgetToggleColumnValue(page, row): PromisesetToggleColumnValue(page, row, value): Promise
Selector naming: {name}{Type} camelCase — e.g. gridTable, filterNameInput, bulkActionDropdownButton, confirmDeleteButton
2. Create/Edit page object
Create bo{Domain}CreatePage (extends BO base page):
- Selectors: form inputs, dropdowns, file uploads, save button, tab navigation (if tabs)
- Methods:
createEdit{Domain}(page, data): Promise— fills all fields, clicks save, returns alert textgetPageTitle(page): PromisegetValue(page, inputName): Promise— for verification after reload- Properties:
pageTitleCreate: string— expected page title for create modepageTitleEdit: string— expected page title for edit modesuccessfulCreationMessage: stringsuccessfulUpdateMessage: string
3. Conventions
See [Playwright/CONTEXT.md](../../CONTEXT.md) for POM conventions (never assert, selector naming, inheritance, library location). Skill-specific reminders:
- One page object per distinct BO page (listing page, create/edit page)
- Prefer
data-testattribute selectors when available over CSS classes - Check if page objects already exist before creating new ones
Reference: check existing page objects in the ui-testing-library for the exact inheritance pattern and method signatures.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: jeffsenso
- Source: jeffsenso/prestashop-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.