This directory contains Playwright tests converted from Cypress for the Kanvas Snapshot automation.
The tests require the following environment variables to be set:
| Variable | Description | Example |
|---|---|---|
CYPRESS_token |
Meshery/Layer5 Cloud API token for authentication | Your API token from Layer5 Cloud |
CYPRESS_applicationId |
Design UUID to render | 3c116d0a-49ea-4294-addc-d9ab34210662 |
CYPRESS_releasetag |
(Optional) Release tag for capabilities | v0.7.0 |
- Base URL:
https://playground.meshery.io(configured inplaywright.config.js) - Design Rendering:
/extension/meshmap?mode=design&design={designId}&render=full
The tests authenticate by setting cookies:
meshery-provider: Set toLayer5token: Set to the value fromCYPRESS_tokenenvironment variable
export CYPRESS_token="your-token-here"
export CYPRESS_applicationId="your-design-id-here"
npx playwright test tests/loadDesign.spec.jsEnvironment variables are automatically set from workflow inputs:
CYPRESS_token: ${{ inputs.mesheryToken }}CYPRESS_applicationId: ${{ env.APPLICATION_ID }}
Screenshots are saved to the cypress/screenshots/ directory (maintaining compatibility with the original Cypress structure):
snapshot-light.pngsnapshot-dark.png