Skip to content

Commit

Permalink
Merge pull request #1529 from xwp/feature/1528-add-playwright
Browse files Browse the repository at this point in the history
Adds Playwright, first tests and linting.
  • Loading branch information
delawski authored Aug 1, 2024
2 parents 43f147d + 96488f4 commit 2b0007a
Show file tree
Hide file tree
Showing 48 changed files with 2,290 additions and 36 deletions.
8 changes: 8 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.editorconfig
.eslintignore
.eslintrc.json
.eslintrc.playwright.json
.gitignore
.nvmrc
composer.lock
Expand All @@ -14,6 +15,7 @@ package-lock.json
phpcs.xml.dist
phpunit.xml
phpunit-multisite.xml
playwright.config.js
renovate.json
.git
.github
Expand All @@ -22,3 +24,9 @@ renovate.json
local
node_modules
tests

# Playwright generated files.
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
6 changes: 5 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
"camelcase": "off",
"no-alert": "off",
"vars-on-top": "warn"
}
},
"ignorePatterns": [
"tests/e2e/*",
"playwright.config.js"
]
}
8 changes: 8 additions & 0 deletions .eslintrc.playwright.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"env": {
"browser": true
},
"extends": [
"plugin:@wordpress/eslint-plugin/esnext"
]
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ alerts/js/*.min.js

# Generated test data
tests/data/tmp/*
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"recommendations": [
"EditorConfig.EditorConfig",
"felixfbecker.php-debug",
"ikappas.phpcs"
"ms-playwright.playwright"
]
}
3 changes: 3 additions & 0 deletions local/public/wp-content/plugins/hello.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
* Plugin Name: Hello Dolly
* Description: A plugin used for PHP unit tests
*/



Loading

0 comments on commit 2b0007a

Please sign in to comment.