-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E2E tests: separate node project (#18806)
* Added package.json and working env; some broken tests * Fixed wrong paths * Fixed working path in github actions * Fixed env script path in github actions * Revert CI check for console log output * Updated clean command * Removed unused dependencies * Removed config dependency
- Loading branch information
1 parent
997008f
commit fb318a7
Showing
12 changed files
with
7,631 additions
and
1,223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/node_modules | ||
/config/local-* | ||
/reports | ||
/output | ||
plan-data.txt | ||
e2e_tunnels.txt | ||
jetpack-private-options.txt | ||
/allure-results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"plugins": [ "./plugins/e2e-plan-data-interceptor.php" ], | ||
"config": { | ||
"WP_DEBUG": true, | ||
"WP_DEBUG_LOG": true, | ||
"WP_DEBUG_DISPLAY": false, | ||
"JETPACK_BETA_BLOCKS": true | ||
}, | ||
"mappings": { | ||
"wp-content/plugins/jetpack-dev": "../..", | ||
"wp-content/plugins/e2e-plugin-updater.php": "./plugins/e2e-plugin-updater.php", | ||
"wp-content/packages": "../../../../packages/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: { | ||
esmodules: true, | ||
}, | ||
}, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"name": "jetpack-e2e-tests", | ||
"private": true, | ||
"description": "[Jetpack](https://jetpack.com/) is a WordPress plugin that supercharges your self-hosted WordPress site with the awesome cloud power of [WordPress.com](https://wordpress.com).", | ||
"homepage": "https://jetpack.com", | ||
"bugs": { | ||
"url": "https://github.com/Automattic/jetpack/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/Automattic/jetpack.git" | ||
}, | ||
"license": "GPL-2.0-or-later", | ||
"author": "Automattic", | ||
"scripts": { | ||
"clean": "rm -rf output allure-results", | ||
"distclean": "rm -rf node_modules && yarn clean", | ||
"install-if-deps-outdated": "yarn install --check-files --production=false --frozen-lockfile", | ||
"test-e2e-env": "./bin/env.sh start", | ||
"test-decrypt-config": "openssl enc -md sha1 -aes-256-cbc -d -pass env:CONFIG_KEY -in ./config/encrypted.enc -out ./config/local-test.js", | ||
"test-e2e": "NODE_CONFIG_DIR='./config' jest --config jest.config.js --runInBand --verbose", | ||
"test-encrypt-config": "openssl enc -md sha1 -aes-256-cbc -pass env:CONFIG_KEY -in ./config/local-test.js -out ./config/encrypted.enc" | ||
}, | ||
"devDependencies": { | ||
"babel-jest": "26.6.3", | ||
"@babel/core": "7.12.10", | ||
"@babel/preset-env": "7.12.11", | ||
"@slack/web-api": "6.0.0", | ||
"@wordpress/e2e-test-utils": "4.3.1", | ||
"@wordpress/env": "1.6.0", | ||
"@wordpress/eslint-plugin": "8.0.2", | ||
"axios": "0.21.1", | ||
"config": "3.3.3", | ||
"eslint": "7.18.0", | ||
"eslint-plugin-jest": "24.1.3", | ||
"jest": "26.6.3", | ||
"jest-allure": "0.1.3", | ||
"jest-playwright-preset": "1.4.5", | ||
"localtunnel": "2.0.1", | ||
"lodash": "4.17.20", | ||
"mkdirp": "1.0.4", | ||
"playwright": "1.8.0", | ||
"winston": "3.3.3" | ||
}, | ||
"engines": { | ||
"node": "^12.20.1", | ||
"yarn": "^1.3.2" | ||
} | ||
} |
Oops, something went wrong.