Skip to content

Commit

Permalink
Merge pull request CMB2#1437 from markjaquith/cypress
Browse files Browse the repository at this point in the history
Establish Cypress E2E Testing
  • Loading branch information
jtsternberg authored Sep 5, 2021
2 parents b15d588 + 45b36c2 commit a94765b
Show file tree
Hide file tree
Showing 14 changed files with 2,712 additions and 29 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test

on: [push, pull_request]

jobs:
cypress:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: npm i

- name: Test
run: npm run cypress
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ vendor

# General
NOTES.md

# Cypress
/cypress.env.json
/tests/cypress/videos
/tests/cypress/screenshots
10 changes: 10 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"env": {
"tests": {
"plugins": [
".",
"./tests/cypress/support/test-fields.php"
]
}
}
}
10 changes: 10 additions & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"baseUrl": "http://localhost:8889",
"fileServerFolder": "tests/cypress",
"fixturesFolder": "tests/cypress/fixtures",
"integrationFolder": "tests/cypress/integration",
"pluginsFile": "tests/cypress/plugins/index.js",
"screenshotsFolder": "tests/cypress/screenshots",
"supportFile": "tests/cypress/support/index.js",
"videosFolder": "tests/cypress/videos"
}
Loading

0 comments on commit a94765b

Please sign in to comment.