Skip to content

Feature/automated test playground #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: E2E Tests

on:
push:
branches: [ "trunk" ]
pull_request:
branches: [ "trunk" ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Setup Playwright
run: npx playwright install --with-deps

- name: Run End-to-End tests
run: npm run test:e2e
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
build
node_modules
package-lock.json
.DS_Store
*.zip
DNU
Expand All @@ -10,3 +9,4 @@ composer.lock
.phpunit.*
artifacts
.vscode
test-results
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/*
v20.18.3
12 changes: 12 additions & 0 deletions _blueprints/e2e-blueprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"constants": {
"SCRIPT_DEBUG": true
},
"steps": [
{
"step": "activatePlugin",
"pluginPath": "/wordpress/wp-content/plugins/advanced-query-loop/index.php"
}
]
}
Loading
Loading