Skip to content

Commit

Permalink
Merge pull request #23 from ManiruzzamanAkash/feat/playwrite-e2e
Browse files Browse the repository at this point in the history
Feat: WordPress Playwright e2e Test support for Gutenberg block
  • Loading branch information
ManiruzzamanAkash authored May 24, 2023
2 parents 14cd924 + d3059b0 commit 3a8f262
Show file tree
Hide file tree
Showing 15 changed files with 33,778 additions and 5,470 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@
/build
.phpunit.result.cache
.DS_Store
/dist
/dist

# Playwright
/test-results/
/playwright-report/
/playwright/.cache/
/artifacts/
23 changes: 23 additions & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"phpVersion": "7.4",
"plugins": [
"."
],
"config": {
"WP_DEBUG_LOG": true,
"WP_DEBUG_DISPLAY": true
},
"env": {
"development": {},
"tests": {
"port": 8889,
"plugins": [
".",
"./tests/e2e/gutenberg-test-plugin-disables-the-css-animations"
],
"config": {
"WP_TESTS_DOMAIN": "localhost"
}
}
}
}
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# WP-React-Kit
A simple starter kit to work in WordPress plugin development using WordPress Rest API, WP-script, React, React Router, Tailwind CSS, PostCSS, Eslint, WP-Data, WP-Data Store, React Components, React CRUD, i18n, PHPUnit Test, JestUnit Test, e2e Test, Gutenberg blocks and PHP OOP plugin architecture easily in a minute.
A simple starter kit to work in WordPress plugin development using WordPress Rest API, WP-script, React, React Router, Tailwind CSS, PostCSS, Eslint, WP-Data, WP-Data Store, React Components, React CRUD, i18n, PHPUnit Test, JestUnit Test, WordPress Playwright e2e Test, Gutenberg blocks and PHP OOP plugin architecture easily in a minute.

----

Expand All @@ -21,7 +21,7 @@ A simple starter kit to work in WordPress plugin development using WordPress Res
14. Internationalization - WP i18n
15. PHPUnit Test [Test + Fix]
16. JestUnit Test
17. Jest-Pupetter e2e Test
17. WordPress Playwright e2e Test
18. PHP OOP plugin architecture [Traits + Interfaces + Abstract Classes]
19. Gutenberg blocks, Dynamic blocks

Expand Down Expand Up @@ -85,9 +85,9 @@ composer run test:all
npm run test:unit
```

### Run Jest-Pupeteer e2e Test
### Run Playwright e2e Test

WordPress core doc link: https://make.wordpress.org/core/2019/06/27/introducing-the-wordpress-e2e-tests/
Playwright doc link: https://playwright.dev/docs/running-tests

**Requirements:**
- Must have docker installed and running by ensuring these commands -
Expand All @@ -106,6 +106,8 @@ npm run test:e2e
npm run test:e2e:watch
```

For more about e2e Tests running please check - https://playwright.dev/docs/running-tests

### PHP Coding Standards - PHPCS

**Get all errors of the project:**
Expand Down Expand Up @@ -192,6 +194,11 @@ Or, it could be your custom processed URL.
[View Detailed documentations with parameters and responses of the REST API](https://github.com/ManiruzzamanAkash/wp-react-kit/blob/main/Rest-API-Docs.MD)

### Version & Changelogs
**v0.8.0 - 24/05/2023**

1. New feature: WordPress Playwright test-e2e-utils added.
1. New feature: Some Gutenberg blocks has support for Playwright test.

**v0.7.0 - 01/01/2023**

1. Fix: Dynamic block renderer issue.
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
### Changelogs
**v0.8.0 - 24/05/2023**

1. New feature: WordPress Playwright test-e2e-utils added.
1. New feature: Some Gutenberg blocks has support for Playwright test.

**v0.7.0 - 01/01/2023**

Expand Down
6 changes: 3 additions & 3 deletions job-place.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Description: A simple starter kit to work in WordPress plugin development using WordPress Rest API, WP-script and many more...
* Requires at least: 5.8
* Requires PHP: 7.4
* Version: 0.7.0
* Tested upto: 6.1.1
* Version: 0.8.0
* Tested upto: 6.2.2
* Author: Maniruzzaman Akash<manirujjamanakash@gmail.com>
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -26,7 +26,7 @@ final class Wp_React_Kit {
*
* @var string
*/
const VERSION = '0.7.0';
const VERSION = '0.8.0';

/**
* Plugin slug.
Expand Down
Loading

0 comments on commit 3a8f262

Please # to comment.