Skip to content

Commit 8dc0ff6

Browse files
srsholmesclaude
andauthored
feat: add playwright-config input to frontend-e2e-against-stack action (#754)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 919febd commit 8dc0ff6

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

  • actions/plugins/frontend-e2e-against-stack

actions/plugins/frontend-e2e-against-stack/action.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ inputs:
5353
required: false
5454
default: ""
5555

56+
playwright-config:
57+
description: "Path to a custom Playwright config file, relative to the plugin directory. If empty (the default), Playwright resolves its own config (playwright.config.ts in the working dir)."
58+
required: false
59+
default: ""
60+
5661
runs:
5762
using: "composite"
5863
steps:
@@ -276,7 +281,13 @@ runs:
276281
shell: bash
277282
env:
278283
NODE_ENV: production
279-
run: npx playwright test
284+
PLAYWRIGHT_CONFIG: ${{ inputs.playwright-config }}
285+
run: |
286+
if [[ -n "$PLAYWRIGHT_CONFIG" ]]; then
287+
npx playwright test --config="$PLAYWRIGHT_CONFIG"
288+
else
289+
npx playwright test
290+
fi
280291
working-directory: ${{ inputs.plugin-directory }}
281292

282293
- name: Stop grafana docker

0 commit comments

Comments
 (0)