diff --git a/.eslintignore b/.eslintignore
index 57cc5ea6a6336b..416bce0a8e0567 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,6 +1,6 @@
build
build-module
node_modules
-packages/tests-e2e/plugins
+packages/e2e-tests/plugins
vendor
packages/block-serialization-spec-parser/parser.js
diff --git a/.eslintrc.js b/.eslintrc.js
index 9bce17b6e61f94..235fe1af10b079 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -182,7 +182,7 @@ module.exports = {
},
overrides: [
{
- files: [ 'packages/tests-e2e/**/*.js' ],
+ files: [ 'packages/e2e-test*/**/*.js' ],
env: {
browser: true,
},
diff --git a/.travis.yml b/.travis.yml
index 250eb24ac2af5e..55fd93ba4a1efc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -67,7 +67,7 @@ jobs:
install:
- ./bin/setup-local-env.sh
script:
- - $( npm bin )/wp-scripts test-e2e --testPathPattern=/packages/tests-e2e/specs/ --listTests > ~/.jest-e2e-tests
+ - $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )
- name: E2E tests (Admin with plugins) (2/2)
@@ -75,7 +75,7 @@ jobs:
install:
- ./bin/setup-local-env.sh
script:
- - $( npm bin )/wp-scripts test-e2e --testPathPattern=/packages/tests-e2e/specs/ --listTests > ~/.jest-e2e-tests
+ - $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )
- name: E2E tests (Author without plugins) (1/2)
@@ -83,7 +83,7 @@ jobs:
install:
- ./bin/setup-local-env.sh
script:
- - $( npm bin )/wp-scripts test-e2e --testPathPattern=/packages/tests-e2e/specs/ --listTests > ~/.jest-e2e-tests
+ - $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )
- name: E2E tests (Author without plugins) (2/2)
@@ -91,5 +91,5 @@ jobs:
install:
- ./bin/setup-local-env.sh
script:
- - $( npm bin )/wp-scripts test-e2e --testPathPattern=/packages/tests-e2e/specs/ --listTests > ~/.jest-e2e-tests
+ - $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )
diff --git a/docker-compose.yml b/docker-compose.yml
index 234da4726c5d03..9a42742d389df5 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -12,8 +12,8 @@ services:
volumes:
- wordpress:/var/www/html
- .:/var/www/html/wp-content/plugins/gutenberg
- - ./packages/tests-e2e/plugins:/var/www/html/wp-content/plugins/gutenberg-test-plugins
- - ./packages/tests-e2e/mu-plugins:/var/www/html/wp-content/mu-plugins
+ - ./packages/e2e-tests/plugins:/var/www/html/wp-content/plugins/gutenberg-test-plugins
+ - ./packages/e2e-tests/mu-plugins:/var/www/html/wp-content/mu-plugins
depends_on:
- mysql
@@ -59,8 +59,8 @@ services:
volumes:
- wordpress_e2e_tests:/var/www/html
- .:/var/www/html/wp-content/plugins/gutenberg
- - ./packages/tests-e2e/plugins:/var/www/html/wp-content/plugins/gutenberg-test-plugins
- - ./test/e2e/mu-plugins:/var/www/html/wp-content/mu-plugins
+ - ./packages/e2e-tests/plugins:/var/www/html/wp-content/plugins/gutenberg-test-plugins
+ - ./packages/e2e-tests/mu-plugins:/var/www/html/wp-content/mu-plugins
cli_e2e_tests:
image: wordpress:cli
diff --git a/docs/manifest.json b/docs/manifest.json
index a6e908c687806d..51741605a75c99 100644
--- a/docs/manifest.json
+++ b/docs/manifest.json
@@ -593,6 +593,18 @@
"markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/dom/README.md",
"parent": "packages"
},
+ {
+ "title": "@wordpress/e2e-test-utils",
+ "slug": "packages-e2e-test-utils",
+ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/e2e-test-utils/README.md",
+ "parent": "packages"
+ },
+ {
+ "title": "@wordpress/e2e-tests",
+ "slug": "packages-e2e-tests",
+ "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/e2e-tests/README.md",
+ "parent": "packages"
+ },
{
"title": "@wordpress/edit-post",
"slug": "packages-edit-post",
@@ -737,12 +749,6 @@
"markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/shortcode/README.md",
"parent": "packages"
},
- {
- "title": "@wordpress/tests-e2e",
- "slug": "packages-tests-e2e",
- "markdown_source": "https://raw.githubusercontent.com/WordPress/gutenberg/master/packages/tests-e2e/README.md",
- "parent": "packages"
- },
{
"title": "@wordpress/token-list",
"slug": "packages-token-list",
diff --git a/jsconfig.json b/jsconfig.json
index c3f3e3de874e54..51f5ce09b49e00 100644
--- a/jsconfig.json
+++ b/jsconfig.json
@@ -9,7 +9,7 @@
"build",
"build-module",
"node_modules",
- "packages/tests-e2e/plugins",
+ "packages/e2e-tests/plugins",
"vendor"
]
}
diff --git a/package-lock.json b/package-lock.json
index 55c478e4e32796..dc9076c17fc2ad 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2505,6 +2505,27 @@
"@babel/runtime": "^7.0.0"
}
},
+ "@wordpress/e2e-test-utils": {
+ "version": "file:packages/e2e-test-utils",
+ "dev": true,
+ "requires": {
+ "@wordpress/keycodes": "file:packages/keycodes",
+ "@wordpress/url": "file:packages/url",
+ "lodash": "^4.17.10",
+ "node-fetch": "^1.7.3"
+ }
+ },
+ "@wordpress/e2e-tests": {
+ "version": "file:packages/e2e-tests",
+ "dev": true,
+ "requires": {
+ "@wordpress/e2e-test-utils": "file:packages/e2e-test-utils",
+ "@wordpress/jest-console": "file:packages/jest-console",
+ "@wordpress/scripts": "file:packages/scripts",
+ "expect-puppeteer": "^3.2.0",
+ "lodash": "^4.17.10"
+ }
+ },
"@wordpress/edit-post": {
"version": "file:packages/edit-post",
"requires": {
@@ -2787,18 +2808,6 @@
"memize": "^1.0.5"
}
},
- "@wordpress/tests-e2e": {
- "version": "file:packages/tests-e2e",
- "dev": true,
- "requires": {
- "@wordpress/jest-console": "file:packages/jest-console",
- "@wordpress/keycodes": "file:packages/keycodes",
- "@wordpress/url": "file:packages/url",
- "expect-puppeteer": "^3.2.0",
- "lodash": "^4.17.10",
- "node-fetch": "^1.7.3"
- }
- },
"@wordpress/token-list": {
"version": "file:packages/token-list",
"requires": {
diff --git a/package.json b/package.json
index 012664ba799457..ac8589c049a564 100644
--- a/package.json
+++ b/package.json
@@ -60,6 +60,8 @@
"@wordpress/babel-preset-default": "file:packages/babel-preset-default",
"@wordpress/browserslist-config": "file:packages/browserslist-config",
"@wordpress/custom-templated-path-webpack-plugin": "file:packages/custom-templated-path-webpack-plugin",
+ "@wordpress/e2e-test-utils": "file:packages/e2e-test-utils",
+ "@wordpress/e2e-tests": "file:packages/e2e-tests",
"@wordpress/eslint-plugin": "file:packages/eslint-plugin",
"@wordpress/jest-console": "file:packages/jest-console",
"@wordpress/jest-preset-default": "file:packages/jest-preset-default",
@@ -67,7 +69,6 @@
"@wordpress/npm-package-json-lint-config": "file:packages/npm-package-json-lint-config",
"@wordpress/postcss-themes": "file:packages/postcss-themes",
"@wordpress/scripts": "file:packages/scripts",
- "@wordpress/tests-e2e": "file:packages/tests-e2e",
"babel-loader": "8.0.0",
"benchmark": "2.1.4",
"browserslist": "3.2.8",
@@ -176,7 +177,7 @@
"publish:prod": "npm run build:packages && lerna publish",
"test": "npm run lint && npm run test-unit",
"pretest-e2e": "concurrently \"./bin/reset-e2e-tests.sh\" \"npm run build\"",
- "test-e2e": "wp-scripts test-e2e --setupTestFrameworkScriptFile=./packages/tests-e2e/support/setup-test-framework.js --testPathPattern=/packages/tests-e2e/specs/",
+ "test-e2e": "wp-scripts test-e2e --config packages/e2e-tests/jest.config.js",
"test-e2e:watch": "npm run test-e2e -- --watch",
"test-php": "npm run lint-php && npm run test-unit-php",
"test-unit": "wp-scripts test-unit-js --config test/unit/jest.config.json",
diff --git a/packages/tests-e2e/.npmrc b/packages/e2e-test-utils/.npmrc
similarity index 100%
rename from packages/tests-e2e/.npmrc
rename to packages/e2e-test-utils/.npmrc
diff --git a/packages/e2e-test-utils/CHANGELOG.md b/packages/e2e-test-utils/CHANGELOG.md
new file mode 100644
index 00000000000000..e2467d78c92eb4
--- /dev/null
+++ b/packages/e2e-test-utils/CHANGELOG.md
@@ -0,0 +1,3 @@
+## 1.0.0 (Unreleased)
+
+- Initial release.
diff --git a/packages/e2e-test-utils/README.md b/packages/e2e-test-utils/README.md
new file mode 100644
index 00000000000000..bfc0ea26c4fa78
--- /dev/null
+++ b/packages/e2e-test-utils/README.md
@@ -0,0 +1,13 @@
+# E2E Test Utils
+
+End-To-End (E2E) test utils for WordPress.
+
+## Installation
+
+Install the module
+
+```bash
+npm install @wordpress/e2e-test-utils --save-dev
+```
+
+
diff --git a/packages/e2e-test-utils/package.json b/packages/e2e-test-utils/package.json
new file mode 100644
index 00000000000000..6b8d4c56987741
--- /dev/null
+++ b/packages/e2e-test-utils/package.json
@@ -0,0 +1,39 @@
+{
+ "name": "@wordpress/e2e-test-utils",
+ "version": "1.0.0-alpha.0",
+ "description": "End-To-End (E2E) test utils for WordPress.",
+ "author": "The WordPress Contributors",
+ "license": "GPL-2.0-or-later",
+ "keywords": [
+ "wordpress",
+ "e2e",
+ "utils"
+ ],
+ "homepage": "https://github.com/WordPress/gutenberg/tree/master/packages/e2e-test-utils/README.md",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/WordPress/gutenberg.git"
+ },
+ "bugs": {
+ "url": "https://github.com/WordPress/gutenberg/issues"
+ },
+ "files": [
+ "build",
+ "build-module"
+ ],
+ "main": "build/index.js",
+ "module": "build-module/index.js",
+ "dependencies": {
+ "@wordpress/keycodes": "file:../keycodes",
+ "@wordpress/url": "file:../url",
+ "lodash": "^4.17.10",
+ "node-fetch": "^1.7.3"
+ },
+ "peerDependencies": {
+ "jest": ">=23.0.0",
+ "puppeteer": ">=1.6.0"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
+}
diff --git a/packages/tests-e2e/support/utils/activate-plugin.js b/packages/e2e-test-utils/src/activate-plugin.js
similarity index 100%
rename from packages/tests-e2e/support/utils/activate-plugin.js
rename to packages/e2e-test-utils/src/activate-plugin.js
diff --git a/packages/tests-e2e/support/utils/are-pre-publish-checks-enabled.js b/packages/e2e-test-utils/src/are-pre-publish-checks-enabled.js
similarity index 100%
rename from packages/tests-e2e/support/utils/are-pre-publish-checks-enabled.js
rename to packages/e2e-test-utils/src/are-pre-publish-checks-enabled.js
diff --git a/packages/tests-e2e/support/utils/clear-local-storage.js b/packages/e2e-test-utils/src/clear-local-storage.js
similarity index 100%
rename from packages/tests-e2e/support/utils/clear-local-storage.js
rename to packages/e2e-test-utils/src/clear-local-storage.js
diff --git a/packages/tests-e2e/support/utils/click-block-appender.js b/packages/e2e-test-utils/src/click-block-appender.js
similarity index 100%
rename from packages/tests-e2e/support/utils/click-block-appender.js
rename to packages/e2e-test-utils/src/click-block-appender.js
diff --git a/packages/tests-e2e/support/utils/click-button.js b/packages/e2e-test-utils/src/click-button.js
similarity index 100%
rename from packages/tests-e2e/support/utils/click-button.js
rename to packages/e2e-test-utils/src/click-button.js
diff --git a/packages/tests-e2e/support/utils/click-on-close-modal-button.js b/packages/e2e-test-utils/src/click-on-close-modal-button.js
similarity index 100%
rename from packages/tests-e2e/support/utils/click-on-close-modal-button.js
rename to packages/e2e-test-utils/src/click-on-close-modal-button.js
diff --git a/packages/tests-e2e/support/utils/click-on-more-menu-item.js b/packages/e2e-test-utils/src/click-on-more-menu-item.js
similarity index 100%
rename from packages/tests-e2e/support/utils/click-on-more-menu-item.js
rename to packages/e2e-test-utils/src/click-on-more-menu-item.js
diff --git a/packages/tests-e2e/support/utils/create-new-post.js b/packages/e2e-test-utils/src/create-new-post.js
similarity index 100%
rename from packages/tests-e2e/support/utils/create-new-post.js
rename to packages/e2e-test-utils/src/create-new-post.js
diff --git a/packages/tests-e2e/support/utils/create-url.js b/packages/e2e-test-utils/src/create-url.js
similarity index 100%
rename from packages/tests-e2e/support/utils/create-url.js
rename to packages/e2e-test-utils/src/create-url.js
diff --git a/packages/tests-e2e/support/utils/deactivate-plugin.js b/packages/e2e-test-utils/src/deactivate-plugin.js
similarity index 100%
rename from packages/tests-e2e/support/utils/deactivate-plugin.js
rename to packages/e2e-test-utils/src/deactivate-plugin.js
diff --git a/packages/tests-e2e/support/utils/disable-pre-publish-checks.js b/packages/e2e-test-utils/src/disable-pre-publish-checks.js
similarity index 100%
rename from packages/tests-e2e/support/utils/disable-pre-publish-checks.js
rename to packages/e2e-test-utils/src/disable-pre-publish-checks.js
diff --git a/packages/tests-e2e/support/utils/enable-page-dialog-accept.js b/packages/e2e-test-utils/src/enable-page-dialog-accept.js
similarity index 100%
rename from packages/tests-e2e/support/utils/enable-page-dialog-accept.js
rename to packages/e2e-test-utils/src/enable-page-dialog-accept.js
diff --git a/packages/tests-e2e/support/utils/enable-pre-publish-checks.js b/packages/e2e-test-utils/src/enable-pre-publish-checks.js
similarity index 100%
rename from packages/tests-e2e/support/utils/enable-pre-publish-checks.js
rename to packages/e2e-test-utils/src/enable-pre-publish-checks.js
diff --git a/packages/tests-e2e/support/utils/ensure-sidebar-opened.js b/packages/e2e-test-utils/src/ensure-sidebar-opened.js
similarity index 100%
rename from packages/tests-e2e/support/utils/ensure-sidebar-opened.js
rename to packages/e2e-test-utils/src/ensure-sidebar-opened.js
diff --git a/packages/tests-e2e/support/utils/find-sidebar-panel-with-title.js b/packages/e2e-test-utils/src/find-sidebar-panel-with-title.js
similarity index 100%
rename from packages/tests-e2e/support/utils/find-sidebar-panel-with-title.js
rename to packages/e2e-test-utils/src/find-sidebar-panel-with-title.js
diff --git a/packages/tests-e2e/support/utils/get-all-blocks.js b/packages/e2e-test-utils/src/get-all-blocks.js
similarity index 100%
rename from packages/tests-e2e/support/utils/get-all-blocks.js
rename to packages/e2e-test-utils/src/get-all-blocks.js
diff --git a/packages/tests-e2e/support/utils/get-available-block-transforms.js b/packages/e2e-test-utils/src/get-available-block-transforms.js
similarity index 100%
rename from packages/tests-e2e/support/utils/get-available-block-transforms.js
rename to packages/e2e-test-utils/src/get-available-block-transforms.js
diff --git a/packages/tests-e2e/support/utils/get-edited-post-content.js b/packages/e2e-test-utils/src/get-edited-post-content.js
similarity index 100%
rename from packages/tests-e2e/support/utils/get-edited-post-content.js
rename to packages/e2e-test-utils/src/get-edited-post-content.js
diff --git a/packages/tests-e2e/support/utils/has-block-switcher.js b/packages/e2e-test-utils/src/has-block-switcher.js
similarity index 100%
rename from packages/tests-e2e/support/utils/has-block-switcher.js
rename to packages/e2e-test-utils/src/has-block-switcher.js
diff --git a/packages/tests-e2e/support/utils/index.js b/packages/e2e-test-utils/src/index.js
similarity index 100%
rename from packages/tests-e2e/support/utils/index.js
rename to packages/e2e-test-utils/src/index.js
diff --git a/packages/tests-e2e/support/utils/insert-block.js b/packages/e2e-test-utils/src/insert-block.js
similarity index 100%
rename from packages/tests-e2e/support/utils/insert-block.js
rename to packages/e2e-test-utils/src/insert-block.js
diff --git a/packages/tests-e2e/support/utils/install-plugin.js b/packages/e2e-test-utils/src/install-plugin.js
similarity index 100%
rename from packages/tests-e2e/support/utils/install-plugin.js
rename to packages/e2e-test-utils/src/install-plugin.js
diff --git a/packages/tests-e2e/support/utils/is-current-url.js b/packages/e2e-test-utils/src/is-current-url.js
similarity index 100%
rename from packages/tests-e2e/support/utils/is-current-url.js
rename to packages/e2e-test-utils/src/is-current-url.js
diff --git a/packages/tests-e2e/support/utils/login-user.js b/packages/e2e-test-utils/src/login-user.js
similarity index 100%
rename from packages/tests-e2e/support/utils/login-user.js
rename to packages/e2e-test-utils/src/login-user.js
diff --git a/packages/tests-e2e/support/utils/mocks/create-embedding-matcher.js b/packages/e2e-test-utils/src/mocks/create-embedding-matcher.js
similarity index 100%
rename from packages/tests-e2e/support/utils/mocks/create-embedding-matcher.js
rename to packages/e2e-test-utils/src/mocks/create-embedding-matcher.js
diff --git a/packages/tests-e2e/support/utils/mocks/create-json-response.js b/packages/e2e-test-utils/src/mocks/create-json-response.js
similarity index 100%
rename from packages/tests-e2e/support/utils/mocks/create-json-response.js
rename to packages/e2e-test-utils/src/mocks/create-json-response.js
diff --git a/packages/tests-e2e/support/utils/mocks/create-url-matcher.js b/packages/e2e-test-utils/src/mocks/create-url-matcher.js
similarity index 100%
rename from packages/tests-e2e/support/utils/mocks/create-url-matcher.js
rename to packages/e2e-test-utils/src/mocks/create-url-matcher.js
diff --git a/packages/tests-e2e/support/utils/mocks/index.js b/packages/e2e-test-utils/src/mocks/index.js
similarity index 100%
rename from packages/tests-e2e/support/utils/mocks/index.js
rename to packages/e2e-test-utils/src/mocks/index.js
diff --git a/packages/tests-e2e/support/utils/mocks/mock-or-transform.js b/packages/e2e-test-utils/src/mocks/mock-or-transform.js
similarity index 100%
rename from packages/tests-e2e/support/utils/mocks/mock-or-transform.js
rename to packages/e2e-test-utils/src/mocks/mock-or-transform.js
diff --git a/packages/tests-e2e/support/utils/mocks/set-up-response-mocking.js b/packages/e2e-test-utils/src/mocks/set-up-response-mocking.js
similarity index 100%
rename from packages/tests-e2e/support/utils/mocks/set-up-response-mocking.js
rename to packages/e2e-test-utils/src/mocks/set-up-response-mocking.js
diff --git a/packages/tests-e2e/support/utils/observe-focus-loss.js b/packages/e2e-test-utils/src/observe-focus-loss.js
similarity index 100%
rename from packages/tests-e2e/support/utils/observe-focus-loss.js
rename to packages/e2e-test-utils/src/observe-focus-loss.js
diff --git a/packages/tests-e2e/support/utils/open-document-settings-sidebar.js b/packages/e2e-test-utils/src/open-document-settings-sidebar.js
similarity index 100%
rename from packages/tests-e2e/support/utils/open-document-settings-sidebar.js
rename to packages/e2e-test-utils/src/open-document-settings-sidebar.js
diff --git a/packages/tests-e2e/support/utils/open-publish-panel.js b/packages/e2e-test-utils/src/open-publish-panel.js
similarity index 100%
rename from packages/tests-e2e/support/utils/open-publish-panel.js
rename to packages/e2e-test-utils/src/open-publish-panel.js
diff --git a/packages/tests-e2e/support/utils/press-key-times.js b/packages/e2e-test-utils/src/press-key-times.js
similarity index 100%
rename from packages/tests-e2e/support/utils/press-key-times.js
rename to packages/e2e-test-utils/src/press-key-times.js
diff --git a/packages/tests-e2e/support/utils/press-key-with-modifier.js b/packages/e2e-test-utils/src/press-key-with-modifier.js
similarity index 100%
rename from packages/tests-e2e/support/utils/press-key-with-modifier.js
rename to packages/e2e-test-utils/src/press-key-with-modifier.js
diff --git a/packages/tests-e2e/support/utils/publish-post-with-pre-publish-checks-disabled.js b/packages/e2e-test-utils/src/publish-post-with-pre-publish-checks-disabled.js
similarity index 100%
rename from packages/tests-e2e/support/utils/publish-post-with-pre-publish-checks-disabled.js
rename to packages/e2e-test-utils/src/publish-post-with-pre-publish-checks-disabled.js
diff --git a/packages/tests-e2e/support/utils/publish-post.js b/packages/e2e-test-utils/src/publish-post.js
similarity index 100%
rename from packages/tests-e2e/support/utils/publish-post.js
rename to packages/e2e-test-utils/src/publish-post.js
diff --git a/packages/tests-e2e/support/utils/save-draft.js b/packages/e2e-test-utils/src/save-draft.js
similarity index 100%
rename from packages/tests-e2e/support/utils/save-draft.js
rename to packages/e2e-test-utils/src/save-draft.js
diff --git a/packages/tests-e2e/support/utils/search-for-block.js b/packages/e2e-test-utils/src/search-for-block.js
similarity index 100%
rename from packages/tests-e2e/support/utils/search-for-block.js
rename to packages/e2e-test-utils/src/search-for-block.js
diff --git a/packages/tests-e2e/support/utils/select-block-by-client-id.js b/packages/e2e-test-utils/src/select-block-by-client-id.js
similarity index 100%
rename from packages/tests-e2e/support/utils/select-block-by-client-id.js
rename to packages/e2e-test-utils/src/select-block-by-client-id.js
diff --git a/packages/tests-e2e/support/utils/set-browser-viewport.js b/packages/e2e-test-utils/src/set-browser-viewport.js
similarity index 100%
rename from packages/tests-e2e/support/utils/set-browser-viewport.js
rename to packages/e2e-test-utils/src/set-browser-viewport.js
diff --git a/packages/tests-e2e/support/utils/set-post-content.js b/packages/e2e-test-utils/src/set-post-content.js
similarity index 100%
rename from packages/tests-e2e/support/utils/set-post-content.js
rename to packages/e2e-test-utils/src/set-post-content.js
diff --git a/packages/tests-e2e/support/utils/shared/config.js b/packages/e2e-test-utils/src/shared/config.js
similarity index 100%
rename from packages/tests-e2e/support/utils/shared/config.js
rename to packages/e2e-test-utils/src/shared/config.js
diff --git a/packages/tests-e2e/support/utils/shared/get-json-response.js b/packages/e2e-test-utils/src/shared/get-json-response.js
similarity index 100%
rename from packages/tests-e2e/support/utils/shared/get-json-response.js
rename to packages/e2e-test-utils/src/shared/get-json-response.js
diff --git a/packages/tests-e2e/support/utils/switch-editor-mode-to.js b/packages/e2e-test-utils/src/switch-editor-mode-to.js
similarity index 100%
rename from packages/tests-e2e/support/utils/switch-editor-mode-to.js
rename to packages/e2e-test-utils/src/switch-editor-mode-to.js
diff --git a/packages/tests-e2e/support/utils/switch-user-to-admin.js b/packages/e2e-test-utils/src/switch-user-to-admin.js
similarity index 100%
rename from packages/tests-e2e/support/utils/switch-user-to-admin.js
rename to packages/e2e-test-utils/src/switch-user-to-admin.js
diff --git a/packages/tests-e2e/support/utils/switch-user-to-test.js b/packages/e2e-test-utils/src/switch-user-to-test.js
similarity index 100%
rename from packages/tests-e2e/support/utils/switch-user-to-test.js
rename to packages/e2e-test-utils/src/switch-user-to-test.js
diff --git a/packages/tests-e2e/support/utils/toggle-screen-option.js b/packages/e2e-test-utils/src/toggle-screen-option.js
similarity index 100%
rename from packages/tests-e2e/support/utils/toggle-screen-option.js
rename to packages/e2e-test-utils/src/toggle-screen-option.js
diff --git a/packages/tests-e2e/support/utils/transform-block-to.js b/packages/e2e-test-utils/src/transform-block-to.js
similarity index 100%
rename from packages/tests-e2e/support/utils/transform-block-to.js
rename to packages/e2e-test-utils/src/transform-block-to.js
diff --git a/packages/tests-e2e/support/utils/uninstall-plugin.js b/packages/e2e-test-utils/src/uninstall-plugin.js
similarity index 100%
rename from packages/tests-e2e/support/utils/uninstall-plugin.js
rename to packages/e2e-test-utils/src/uninstall-plugin.js
diff --git a/packages/tests-e2e/support/utils/visit-admin-page.js b/packages/e2e-test-utils/src/visit-admin-page.js
similarity index 100%
rename from packages/tests-e2e/support/utils/visit-admin-page.js
rename to packages/e2e-test-utils/src/visit-admin-page.js
diff --git a/packages/tests-e2e/support/utils/wait-for-window-dimensions.js b/packages/e2e-test-utils/src/wait-for-window-dimensions.js
similarity index 100%
rename from packages/tests-e2e/support/utils/wait-for-window-dimensions.js
rename to packages/e2e-test-utils/src/wait-for-window-dimensions.js
diff --git a/packages/e2e-tests/.npmrc b/packages/e2e-tests/.npmrc
new file mode 100644
index 00000000000000..43c97e719a5a82
--- /dev/null
+++ b/packages/e2e-tests/.npmrc
@@ -0,0 +1 @@
+package-lock=false
diff --git a/packages/e2e-tests/CHANGELOG.md b/packages/e2e-tests/CHANGELOG.md
new file mode 100644
index 00000000000000..e2467d78c92eb4
--- /dev/null
+++ b/packages/e2e-tests/CHANGELOG.md
@@ -0,0 +1,3 @@
+## 1.0.0 (Unreleased)
+
+- Initial release.
diff --git a/packages/tests-e2e/README.md b/packages/e2e-tests/README.md
similarity index 78%
rename from packages/tests-e2e/README.md
rename to packages/e2e-tests/README.md
index d2d79debc91bbf..956f714e76f759 100644
--- a/packages/tests-e2e/README.md
+++ b/packages/e2e-tests/README.md
@@ -1,4 +1,4 @@
-# Tests E2E
+# E2E Tests
End-To-End (E2E) tests for WordPress.
@@ -7,7 +7,7 @@ End-To-End (E2E) tests for WordPress.
Install the module
```bash
-npm install @wordpress/tests-e2e --save-dev
+npm install @wordpress/e2e-tests --save-dev
```
diff --git a/packages/tests-e2e/assets/10x10_e2e_test_image_z9T8jK.png b/packages/e2e-tests/assets/10x10_e2e_test_image_z9T8jK.png
similarity index 100%
rename from packages/tests-e2e/assets/10x10_e2e_test_image_z9T8jK.png
rename to packages/e2e-tests/assets/10x10_e2e_test_image_z9T8jK.png
diff --git a/packages/tests-e2e/assets/greeting-reusable-block.json b/packages/e2e-tests/assets/greeting-reusable-block.json
similarity index 100%
rename from packages/tests-e2e/assets/greeting-reusable-block.json
rename to packages/e2e-tests/assets/greeting-reusable-block.json
diff --git a/packages/tests-e2e/support/setup-test-framework.js b/packages/e2e-tests/config/setup-test-framework.js
similarity index 98%
rename from packages/tests-e2e/support/setup-test-framework.js
rename to packages/e2e-tests/config/setup-test-framework.js
index ce775d4da25139..20d96e29fb5707 100644
--- a/packages/tests-e2e/support/setup-test-framework.js
+++ b/packages/e2e-tests/config/setup-test-framework.js
@@ -8,16 +8,12 @@ import { get } from 'lodash';
* WordPress dependencies
*/
import '@wordpress/jest-console';
-
-/**
- * Internal dependencies
- */
import {
clearLocalStorage,
enablePageDialogAccept,
setBrowserViewport,
visitAdminPage,
-} from './utils';
+} from '@wordpress/e2e-test-utils';
/**
* Environment variables
diff --git a/packages/e2e-tests/jest.config.js b/packages/e2e-tests/jest.config.js
new file mode 100644
index 00000000000000..9984044fd0ccd5
--- /dev/null
+++ b/packages/e2e-tests/jest.config.js
@@ -0,0 +1,4 @@
+module.exports = {
+ ...require( '@wordpress/scripts/config/jest-e2e.config' ),
+ setupTestFrameworkScriptFile: '/config/setup-test-framework.js',
+};
diff --git a/packages/tests-e2e/mu-plugins/disable-login-autofocus.php b/packages/e2e-tests/mu-plugins/disable-login-autofocus.php
similarity index 100%
rename from packages/tests-e2e/mu-plugins/disable-login-autofocus.php
rename to packages/e2e-tests/mu-plugins/disable-login-autofocus.php
diff --git a/packages/tests-e2e/package.json b/packages/e2e-tests/package.json
similarity index 73%
rename from packages/tests-e2e/package.json
rename to packages/e2e-tests/package.json
index b2cbd88c6685f7..889b2fccf093b7 100644
--- a/packages/tests-e2e/package.json
+++ b/packages/e2e-tests/package.json
@@ -1,16 +1,15 @@
{
- "name": "@wordpress/tests-e2e",
- "private": true,
+ "name": "@wordpress/e2e-tests",
"version": "1.0.0-alpha.0",
"description": "End-To-End (E2E) tests for WordPress.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"keywords": [
"wordpress",
- "tests",
- "e2e"
+ "e2e",
+ "tests"
],
- "homepage": "https://github.com/WordPress/gutenberg/tree/master/packages/tests-e2e/README.md",
+ "homepage": "https://github.com/WordPress/gutenberg/tree/master/packages/e2e-tests/README.md",
"repository": {
"type": "git",
"url": "https://github.com/WordPress/gutenberg.git"
@@ -19,12 +18,11 @@
"url": "https://github.com/WordPress/gutenberg/issues"
},
"dependencies": {
+ "@wordpress/e2e-test-utils": "file:../e2e-test-utils",
"@wordpress/jest-console": "file:../jest-console",
- "@wordpress/keycodes": "file:../keycodes",
- "@wordpress/url": "file:../url",
+ "@wordpress/scripts": "file:../scripts",
"expect-puppeteer": "^3.2.0",
- "lodash": "^4.17.10",
- "node-fetch": "^1.7.3"
+ "lodash": "^4.17.10"
},
"peerDependencies": {
"jest": ">=23.0.0",
diff --git a/packages/tests-e2e/plugins/align-hook.php b/packages/e2e-tests/plugins/align-hook.php
similarity index 100%
rename from packages/tests-e2e/plugins/align-hook.php
rename to packages/e2e-tests/plugins/align-hook.php
diff --git a/packages/tests-e2e/plugins/align-hook/index.js b/packages/e2e-tests/plugins/align-hook/index.js
similarity index 100%
rename from packages/tests-e2e/plugins/align-hook/index.js
rename to packages/e2e-tests/plugins/align-hook/index.js
diff --git a/packages/tests-e2e/plugins/block-icons.php b/packages/e2e-tests/plugins/block-icons.php
similarity index 100%
rename from packages/tests-e2e/plugins/block-icons.php
rename to packages/e2e-tests/plugins/block-icons.php
diff --git a/packages/tests-e2e/plugins/block-icons/index.js b/packages/e2e-tests/plugins/block-icons/index.js
similarity index 100%
rename from packages/tests-e2e/plugins/block-icons/index.js
rename to packages/e2e-tests/plugins/block-icons/index.js
diff --git a/packages/tests-e2e/plugins/container-without-paragraph.php b/packages/e2e-tests/plugins/container-without-paragraph.php
similarity index 100%
rename from packages/tests-e2e/plugins/container-without-paragraph.php
rename to packages/e2e-tests/plugins/container-without-paragraph.php
diff --git a/packages/tests-e2e/plugins/container-without-paragraph/index.js b/packages/e2e-tests/plugins/container-without-paragraph/index.js
similarity index 100%
rename from packages/tests-e2e/plugins/container-without-paragraph/index.js
rename to packages/e2e-tests/plugins/container-without-paragraph/index.js
diff --git a/packages/tests-e2e/plugins/custom-post-types.php b/packages/e2e-tests/plugins/custom-post-types.php
similarity index 100%
rename from packages/tests-e2e/plugins/custom-post-types.php
rename to packages/e2e-tests/plugins/custom-post-types.php
diff --git a/packages/tests-e2e/plugins/default-post-content.php b/packages/e2e-tests/plugins/default-post-content.php
similarity index 100%
rename from packages/tests-e2e/plugins/default-post-content.php
rename to packages/e2e-tests/plugins/default-post-content.php
diff --git a/packages/tests-e2e/plugins/deprecated-node-matcher.php b/packages/e2e-tests/plugins/deprecated-node-matcher.php
similarity index 100%
rename from packages/tests-e2e/plugins/deprecated-node-matcher.php
rename to packages/e2e-tests/plugins/deprecated-node-matcher.php
diff --git a/packages/tests-e2e/plugins/deprecated-node-matcher/index.js b/packages/e2e-tests/plugins/deprecated-node-matcher/index.js
similarity index 100%
rename from packages/tests-e2e/plugins/deprecated-node-matcher/index.js
rename to packages/e2e-tests/plugins/deprecated-node-matcher/index.js
diff --git a/packages/tests-e2e/plugins/format-api.php b/packages/e2e-tests/plugins/format-api.php
similarity index 100%
rename from packages/tests-e2e/plugins/format-api.php
rename to packages/e2e-tests/plugins/format-api.php
diff --git a/packages/tests-e2e/plugins/format-api/index.js b/packages/e2e-tests/plugins/format-api/index.js
similarity index 100%
rename from packages/tests-e2e/plugins/format-api/index.js
rename to packages/e2e-tests/plugins/format-api/index.js
diff --git a/packages/tests-e2e/plugins/hooks-api.php b/packages/e2e-tests/plugins/hooks-api.php
similarity index 100%
rename from packages/tests-e2e/plugins/hooks-api.php
rename to packages/e2e-tests/plugins/hooks-api.php
diff --git a/packages/tests-e2e/plugins/hooks-api/index.js b/packages/e2e-tests/plugins/hooks-api/index.js
similarity index 100%
rename from packages/tests-e2e/plugins/hooks-api/index.js
rename to packages/e2e-tests/plugins/hooks-api/index.js
diff --git a/packages/tests-e2e/plugins/inner-blocks-templates.php b/packages/e2e-tests/plugins/inner-blocks-templates.php
similarity index 100%
rename from packages/tests-e2e/plugins/inner-blocks-templates.php
rename to packages/e2e-tests/plugins/inner-blocks-templates.php
diff --git a/packages/tests-e2e/plugins/inner-blocks-templates/index.js b/packages/e2e-tests/plugins/inner-blocks-templates/index.js
similarity index 100%
rename from packages/tests-e2e/plugins/inner-blocks-templates/index.js
rename to packages/e2e-tests/plugins/inner-blocks-templates/index.js
diff --git a/packages/tests-e2e/plugins/meta-attribute-block.php b/packages/e2e-tests/plugins/meta-attribute-block.php
similarity index 100%
rename from packages/tests-e2e/plugins/meta-attribute-block.php
rename to packages/e2e-tests/plugins/meta-attribute-block.php
diff --git a/packages/tests-e2e/plugins/meta-attribute-block/index.js b/packages/e2e-tests/plugins/meta-attribute-block/index.js
similarity index 100%
rename from packages/tests-e2e/plugins/meta-attribute-block/index.js
rename to packages/e2e-tests/plugins/meta-attribute-block/index.js
diff --git a/packages/tests-e2e/plugins/meta-box.php b/packages/e2e-tests/plugins/meta-box.php
similarity index 100%
rename from packages/tests-e2e/plugins/meta-box.php
rename to packages/e2e-tests/plugins/meta-box.php
diff --git a/packages/tests-e2e/plugins/plugins-api.php b/packages/e2e-tests/plugins/plugins-api.php
similarity index 100%
rename from packages/tests-e2e/plugins/plugins-api.php
rename to packages/e2e-tests/plugins/plugins-api.php
diff --git a/packages/tests-e2e/plugins/plugins-api/annotations-sidebar.js b/packages/e2e-tests/plugins/plugins-api/annotations-sidebar.js
similarity index 100%
rename from packages/tests-e2e/plugins/plugins-api/annotations-sidebar.js
rename to packages/e2e-tests/plugins/plugins-api/annotations-sidebar.js
diff --git a/packages/tests-e2e/plugins/plugins-api/post-status-info.js b/packages/e2e-tests/plugins/plugins-api/post-status-info.js
similarity index 100%
rename from packages/tests-e2e/plugins/plugins-api/post-status-info.js
rename to packages/e2e-tests/plugins/plugins-api/post-status-info.js
diff --git a/packages/tests-e2e/plugins/plugins-api/publish-panel.js b/packages/e2e-tests/plugins/plugins-api/publish-panel.js
similarity index 100%
rename from packages/tests-e2e/plugins/plugins-api/publish-panel.js
rename to packages/e2e-tests/plugins/plugins-api/publish-panel.js
diff --git a/packages/tests-e2e/plugins/plugins-api/sidebar.js b/packages/e2e-tests/plugins/plugins-api/sidebar.js
similarity index 100%
rename from packages/tests-e2e/plugins/plugins-api/sidebar.js
rename to packages/e2e-tests/plugins/plugins-api/sidebar.js
diff --git a/packages/tests-e2e/plugins/post-formats.php b/packages/e2e-tests/plugins/post-formats.php
similarity index 100%
rename from packages/tests-e2e/plugins/post-formats.php
rename to packages/e2e-tests/plugins/post-formats.php
diff --git a/packages/tests-e2e/plugins/templates.php b/packages/e2e-tests/plugins/templates.php
similarity index 100%
rename from packages/tests-e2e/plugins/templates.php
rename to packages/e2e-tests/plugins/templates.php
diff --git a/packages/tests-e2e/plugins/wp-editor-metabox.php b/packages/e2e-tests/plugins/wp-editor-metabox.php
similarity index 100%
rename from packages/tests-e2e/plugins/wp-editor-metabox.php
rename to packages/e2e-tests/plugins/wp-editor-metabox.php
diff --git a/packages/tests-e2e/specs/__snapshots__/adding-blocks.test.js.snap b/packages/e2e-tests/specs/__snapshots__/adding-blocks.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/adding-blocks.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/adding-blocks.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/block-deletion.test.js.snap b/packages/e2e-tests/specs/__snapshots__/block-deletion.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/block-deletion.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/block-deletion.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/block-hierarchy-navigation.test.js.snap b/packages/e2e-tests/specs/__snapshots__/block-hierarchy-navigation.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/block-hierarchy-navigation.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/block-hierarchy-navigation.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/compatibility-classic-editor.test.js.snap b/packages/e2e-tests/specs/__snapshots__/compatibility-classic-editor.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/compatibility-classic-editor.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/compatibility-classic-editor.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/convert-block-type.test.js.snap b/packages/e2e-tests/specs/__snapshots__/convert-block-type.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/convert-block-type.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/convert-block-type.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/embedding.test.js.snap b/packages/e2e-tests/specs/__snapshots__/embedding.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/embedding.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/embedding.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/font-size-picker.test.js.snap b/packages/e2e-tests/specs/__snapshots__/font-size-picker.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/font-size-picker.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/font-size-picker.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/links.test.js.snap b/packages/e2e-tests/specs/__snapshots__/links.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/links.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/links.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/mentions.test.js.snap b/packages/e2e-tests/specs/__snapshots__/mentions.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/mentions.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/mentions.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/reusable-blocks.test.js.snap b/packages/e2e-tests/specs/__snapshots__/reusable-blocks.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/reusable-blocks.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/reusable-blocks.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/rich-text.test.js.snap b/packages/e2e-tests/specs/__snapshots__/rich-text.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/rich-text.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/rich-text.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/splitting-merging.test.js.snap b/packages/e2e-tests/specs/__snapshots__/splitting-merging.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/splitting-merging.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/splitting-merging.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/style-variation.test.js.snap b/packages/e2e-tests/specs/__snapshots__/style-variation.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/style-variation.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/style-variation.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/undo.test.js.snap b/packages/e2e-tests/specs/__snapshots__/undo.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/undo.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/undo.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/writing-flow.test.js.snap b/packages/e2e-tests/specs/__snapshots__/writing-flow.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/writing-flow.test.js.snap
rename to packages/e2e-tests/specs/__snapshots__/writing-flow.test.js.snap
diff --git a/packages/tests-e2e/specs/a11y.test.js b/packages/e2e-tests/specs/a11y.test.js
similarity index 96%
rename from packages/tests-e2e/specs/a11y.test.js
rename to packages/e2e-tests/specs/a11y.test.js
index 93745d38116c2e..1c87cea4af54fa 100644
--- a/packages/tests-e2e/specs/a11y.test.js
+++ b/packages/e2e-tests/specs/a11y.test.js
@@ -1,10 +1,10 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
function isCloseButtonFocused() {
return page.$eval( ':focus', ( focusedElement ) => {
diff --git a/packages/tests-e2e/specs/adding-blocks.test.js b/packages/e2e-tests/specs/adding-blocks.test.js
similarity index 98%
rename from packages/tests-e2e/specs/adding-blocks.test.js
rename to packages/e2e-tests/specs/adding-blocks.test.js
index a9688ff154debb..01ad864bda1888 100644
--- a/packages/tests-e2e/specs/adding-blocks.test.js
+++ b/packages/e2e-tests/specs/adding-blocks.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
insertBlock,
getEditedPostContent,
pressKeyTimes,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'adding blocks', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/adding-inline-tokens.test.js b/packages/e2e-tests/specs/adding-inline-tokens.test.js
similarity index 96%
rename from packages/tests-e2e/specs/adding-inline-tokens.test.js
rename to packages/e2e-tests/specs/adding-inline-tokens.test.js
index 14f504d1db471b..ee2572e1556b77 100644
--- a/packages/tests-e2e/specs/adding-inline-tokens.test.js
+++ b/packages/e2e-tests/specs/adding-inline-tokens.test.js
@@ -7,14 +7,14 @@ import os from 'os';
import uuid from 'uuid/v4';
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
getEditedPostContent,
insertBlock,
createNewPost,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'adding inline tokens', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/block-deletion.test.js b/packages/e2e-tests/specs/block-deletion.test.js
similarity index 98%
rename from packages/tests-e2e/specs/block-deletion.test.js
rename to packages/e2e-tests/specs/block-deletion.test.js
index 76e9d94d2616df..b08eacd1f6d622 100644
--- a/packages/tests-e2e/specs/block-deletion.test.js
+++ b/packages/e2e-tests/specs/block-deletion.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
getEditedPostContent,
createNewPost,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
const addThreeParagraphsToNewPost = async () => {
await createNewPost();
diff --git a/packages/tests-e2e/specs/block-hierarchy-navigation.test.js b/packages/e2e-tests/specs/block-hierarchy-navigation.test.js
similarity index 98%
rename from packages/tests-e2e/specs/block-hierarchy-navigation.test.js
rename to packages/e2e-tests/specs/block-hierarchy-navigation.test.js
index 377e6b963c922d..e93a3dfb218544 100644
--- a/packages/tests-e2e/specs/block-hierarchy-navigation.test.js
+++ b/packages/e2e-tests/specs/block-hierarchy-navigation.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
@@ -7,7 +7,7 @@ import {
getEditedPostContent,
pressKeyTimes,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
async function openBlockNavigator() {
return pressKeyWithModifier( 'access', 'o' );
diff --git a/packages/tests-e2e/specs/block-mover.test.js b/packages/e2e-tests/specs/block-mover.test.js
similarity index 93%
rename from packages/tests-e2e/specs/block-mover.test.js
rename to packages/e2e-tests/specs/block-mover.test.js
index 05a204f5afd742..b9011ee7d01014 100644
--- a/packages/tests-e2e/specs/block-mover.test.js
+++ b/packages/e2e-tests/specs/block-mover.test.js
@@ -1,7 +1,7 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { createNewPost } from '../support/utils';
+import { createNewPost } from '@wordpress/e2e-test-utils';
describe( 'block mover', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/block-switcher.test.js b/packages/e2e-tests/specs/block-switcher.test.js
similarity index 97%
rename from packages/tests-e2e/specs/block-switcher.test.js
rename to packages/e2e-tests/specs/block-switcher.test.js
index 50cd91db7358dd..0d2fcf2adfe9e3 100644
--- a/packages/tests-e2e/specs/block-switcher.test.js
+++ b/packages/e2e-tests/specs/block-switcher.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
hasBlockSwitcher,
@@ -7,7 +7,7 @@ import {
createNewPost,
insertBlock,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'adding blocks', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/blocks/__snapshots__/classic.test.js.snap b/packages/e2e-tests/specs/blocks/__snapshots__/classic.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/blocks/__snapshots__/classic.test.js.snap
rename to packages/e2e-tests/specs/blocks/__snapshots__/classic.test.js.snap
diff --git a/packages/tests-e2e/specs/blocks/__snapshots__/code.test.js.snap b/packages/e2e-tests/specs/blocks/__snapshots__/code.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/blocks/__snapshots__/code.test.js.snap
rename to packages/e2e-tests/specs/blocks/__snapshots__/code.test.js.snap
diff --git a/packages/tests-e2e/specs/blocks/__snapshots__/heading.test.js.snap b/packages/e2e-tests/specs/blocks/__snapshots__/heading.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/blocks/__snapshots__/heading.test.js.snap
rename to packages/e2e-tests/specs/blocks/__snapshots__/heading.test.js.snap
diff --git a/packages/tests-e2e/specs/blocks/__snapshots__/html.test.js.snap b/packages/e2e-tests/specs/blocks/__snapshots__/html.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/blocks/__snapshots__/html.test.js.snap
rename to packages/e2e-tests/specs/blocks/__snapshots__/html.test.js.snap
diff --git a/packages/tests-e2e/specs/blocks/__snapshots__/list.test.js.snap b/packages/e2e-tests/specs/blocks/__snapshots__/list.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/blocks/__snapshots__/list.test.js.snap
rename to packages/e2e-tests/specs/blocks/__snapshots__/list.test.js.snap
diff --git a/packages/tests-e2e/specs/blocks/__snapshots__/quote.test.js.snap b/packages/e2e-tests/specs/blocks/__snapshots__/quote.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/blocks/__snapshots__/quote.test.js.snap
rename to packages/e2e-tests/specs/blocks/__snapshots__/quote.test.js.snap
diff --git a/packages/tests-e2e/specs/blocks/__snapshots__/separator.test.js.snap b/packages/e2e-tests/specs/blocks/__snapshots__/separator.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/blocks/__snapshots__/separator.test.js.snap
rename to packages/e2e-tests/specs/blocks/__snapshots__/separator.test.js.snap
diff --git a/packages/tests-e2e/specs/blocks/classic.test.js b/packages/e2e-tests/specs/blocks/classic.test.js
similarity index 97%
rename from packages/tests-e2e/specs/blocks/classic.test.js
rename to packages/e2e-tests/specs/blocks/classic.test.js
index 9c5b26de267735..2df2d1f2c89822 100644
--- a/packages/tests-e2e/specs/blocks/classic.test.js
+++ b/packages/e2e-tests/specs/blocks/classic.test.js
@@ -7,14 +7,14 @@ import os from 'os';
import uuid from 'uuid/v4';
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
getEditedPostContent,
createNewPost,
insertBlock,
pressKeyWithModifier,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Classic', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/blocks/code.test.js b/packages/e2e-tests/specs/blocks/code.test.js
similarity index 87%
rename from packages/tests-e2e/specs/blocks/code.test.js
rename to packages/e2e-tests/specs/blocks/code.test.js
index f3d9c8e1c4fc7d..018ce71f9794da 100644
--- a/packages/tests-e2e/specs/blocks/code.test.js
+++ b/packages/e2e-tests/specs/blocks/code.test.js
@@ -1,11 +1,11 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
getEditedPostContent,
createNewPost,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Code', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/blocks/heading.test.js b/packages/e2e-tests/specs/blocks/heading.test.js
similarity index 91%
rename from packages/tests-e2e/specs/blocks/heading.test.js
rename to packages/e2e-tests/specs/blocks/heading.test.js
index 284161ec76c40a..a31a77be3adb70 100644
--- a/packages/tests-e2e/specs/blocks/heading.test.js
+++ b/packages/e2e-tests/specs/blocks/heading.test.js
@@ -1,11 +1,11 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
getEditedPostContent,
createNewPost,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Separator', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/blocks/html.test.js b/packages/e2e-tests/specs/blocks/html.test.js
similarity index 91%
rename from packages/tests-e2e/specs/blocks/html.test.js
rename to packages/e2e-tests/specs/blocks/html.test.js
index 2026a2fb1ae922..69370b4f622083 100644
--- a/packages/tests-e2e/specs/blocks/html.test.js
+++ b/packages/e2e-tests/specs/blocks/html.test.js
@@ -1,11 +1,11 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
getEditedPostContent,
createNewPost,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'HTML block', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/blocks/list.test.js b/packages/e2e-tests/specs/blocks/list.test.js
similarity index 99%
rename from packages/tests-e2e/specs/blocks/list.test.js
rename to packages/e2e-tests/specs/blocks/list.test.js
index 27b313d44081d5..1401698c43a110 100644
--- a/packages/tests-e2e/specs/blocks/list.test.js
+++ b/packages/e2e-tests/specs/blocks/list.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
@@ -9,7 +9,7 @@ import {
transformBlockTo,
pressKeyWithModifier,
insertBlock,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'List', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/blocks/quote.test.js b/packages/e2e-tests/specs/blocks/quote.test.js
similarity index 98%
rename from packages/tests-e2e/specs/blocks/quote.test.js
rename to packages/e2e-tests/specs/blocks/quote.test.js
index a5168f8cb743c7..11f1fd5e086385 100644
--- a/packages/tests-e2e/specs/blocks/quote.test.js
+++ b/packages/e2e-tests/specs/blocks/quote.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
@@ -8,7 +8,7 @@ import {
pressKeyTimes,
transformBlockTo,
insertBlock,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Quote', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/blocks/separator.test.js b/packages/e2e-tests/specs/blocks/separator.test.js
similarity index 86%
rename from packages/tests-e2e/specs/blocks/separator.test.js
rename to packages/e2e-tests/specs/blocks/separator.test.js
index 1b3883b51b92ef..1b24a7ec35716d 100644
--- a/packages/tests-e2e/specs/blocks/separator.test.js
+++ b/packages/e2e-tests/specs/blocks/separator.test.js
@@ -1,11 +1,11 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
getEditedPostContent,
createNewPost,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Separator', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/change-detection.test.js b/packages/e2e-tests/specs/change-detection.test.js
similarity index 99%
rename from packages/tests-e2e/specs/change-detection.test.js
rename to packages/e2e-tests/specs/change-detection.test.js
index 857e2b166c3ed8..b8f2377ce2c91b 100644
--- a/packages/tests-e2e/specs/change-detection.test.js
+++ b/packages/e2e-tests/specs/change-detection.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
@@ -7,7 +7,7 @@ import {
pressKeyWithModifier,
ensureSidebarOpened,
publishPost,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Change detection', () => {
let handleInterceptedRequest, hadInterceptedSave;
diff --git a/packages/tests-e2e/specs/compatibility-classic-editor.test.js b/packages/e2e-tests/specs/compatibility-classic-editor.test.js
similarity index 88%
rename from packages/tests-e2e/specs/compatibility-classic-editor.test.js
rename to packages/e2e-tests/specs/compatibility-classic-editor.test.js
index a3a062731c3161..6134361af73fed 100644
--- a/packages/tests-e2e/specs/compatibility-classic-editor.test.js
+++ b/packages/e2e-tests/specs/compatibility-classic-editor.test.js
@@ -1,7 +1,7 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { createNewPost, insertBlock, publishPost } from '../support/utils';
+import { createNewPost, insertBlock, publishPost } from '@wordpress/e2e-test-utils';
describe( 'Compatibility with Classic Editor', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/convert-block-type.test.js b/packages/e2e-tests/specs/convert-block-type.test.js
similarity index 92%
rename from packages/tests-e2e/specs/convert-block-type.test.js
rename to packages/e2e-tests/specs/convert-block-type.test.js
index 0d32512b4c54f1..b99c8541d632fa 100644
--- a/packages/tests-e2e/specs/convert-block-type.test.js
+++ b/packages/e2e-tests/specs/convert-block-type.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
getEditedPostContent,
createNewPost,
insertBlock,
transformBlockTo,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Code block', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/datepicker.test.js b/packages/e2e-tests/specs/datepicker.test.js
similarity index 95%
rename from packages/tests-e2e/specs/datepicker.test.js
rename to packages/e2e-tests/specs/datepicker.test.js
index 7a12f4b82c2303..e3ce2540d39f2e 100644
--- a/packages/tests-e2e/specs/datepicker.test.js
+++ b/packages/e2e-tests/specs/datepicker.test.js
@@ -1,7 +1,7 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { createNewPost } from '../support/utils';
+import { createNewPost } from '@wordpress/e2e-test-utils';
describe( 'Datepicker', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/demo.test.js b/packages/e2e-tests/specs/demo.test.js
similarity index 94%
rename from packages/tests-e2e/specs/demo.test.js
rename to packages/e2e-tests/specs/demo.test.js
index 30b4b3f887d954..80d3fbfeb2939f 100644
--- a/packages/tests-e2e/specs/demo.test.js
+++ b/packages/e2e-tests/specs/demo.test.js
@@ -1,7 +1,7 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { visitAdminPage, createURLMatcher, setUpResponseMocking, mockOrTransform } from '../support/utils';
+import { visitAdminPage, createURLMatcher, setUpResponseMocking, mockOrTransform } from '@wordpress/e2e-test-utils';
const MOCK_VIMEO_RESPONSE = {
url: 'https://vimeo.com/22439234',
diff --git a/packages/tests-e2e/specs/editor-modes.test.js b/packages/e2e-tests/specs/editor-modes.test.js
similarity index 98%
rename from packages/tests-e2e/specs/editor-modes.test.js
rename to packages/e2e-tests/specs/editor-modes.test.js
index e8aee11aaa1c8b..a8a3d86a31c565 100644
--- a/packages/tests-e2e/specs/editor-modes.test.js
+++ b/packages/e2e-tests/specs/editor-modes.test.js
@@ -1,7 +1,7 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { clickBlockAppender, createNewPost, switchEditorModeTo } from '../support/utils';
+import { clickBlockAppender, createNewPost, switchEditorModeTo } from '@wordpress/e2e-test-utils';
describe( 'Editing modes (visual/HTML)', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/embedding.test.js b/packages/e2e-tests/specs/embedding.test.js
similarity index 99%
rename from packages/tests-e2e/specs/embedding.test.js
rename to packages/e2e-tests/specs/embedding.test.js
index 46d7bd4986d822..3ea51358b14b21 100644
--- a/packages/tests-e2e/specs/embedding.test.js
+++ b/packages/e2e-tests/specs/embedding.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
@@ -9,7 +9,7 @@ import {
createJSONResponse,
getEditedPostContent,
clickButton,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
const MOCK_EMBED_WORDPRESS_SUCCESS_RESPONSE = {
url: 'https://wordpress.org/gutenberg/handbook/block-api/attributes/',
diff --git a/packages/tests-e2e/specs/font-size-picker.test.js b/packages/e2e-tests/specs/font-size-picker.test.js
similarity index 98%
rename from packages/tests-e2e/specs/font-size-picker.test.js
rename to packages/e2e-tests/specs/font-size-picker.test.js
index 78b78068b764b4..648a6d47398336 100644
--- a/packages/tests-e2e/specs/font-size-picker.test.js
+++ b/packages/e2e-tests/specs/font-size-picker.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
getEditedPostContent,
createNewPost,
pressKeyTimes,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Font Size Picker', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/fullscreen-mode.test.js b/packages/e2e-tests/specs/fullscreen-mode.test.js
similarity index 90%
rename from packages/tests-e2e/specs/fullscreen-mode.test.js
rename to packages/e2e-tests/specs/fullscreen-mode.test.js
index a960a4a1dd27dc..ef70e1948d641a 100644
--- a/packages/tests-e2e/specs/fullscreen-mode.test.js
+++ b/packages/e2e-tests/specs/fullscreen-mode.test.js
@@ -1,10 +1,10 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
clickOnMoreMenuItem,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Fullscreen Mode', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/invalid-block.test.js b/packages/e2e-tests/specs/invalid-block.test.js
similarity index 95%
rename from packages/tests-e2e/specs/invalid-block.test.js
rename to packages/e2e-tests/specs/invalid-block.test.js
index c06d1f8752efd4..a068781ef42ac9 100644
--- a/packages/tests-e2e/specs/invalid-block.test.js
+++ b/packages/e2e-tests/specs/invalid-block.test.js
@@ -1,10 +1,10 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
clickBlockAppender,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'invalid blocks', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/links.test.js b/packages/e2e-tests/specs/links.test.js
similarity index 99%
rename from packages/tests-e2e/specs/links.test.js
rename to packages/e2e-tests/specs/links.test.js
index aa439447fcf5a2..85ba99badcf247 100644
--- a/packages/tests-e2e/specs/links.test.js
+++ b/packages/e2e-tests/specs/links.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
@@ -8,7 +8,7 @@ import {
pressKeyWithModifier,
pressKeyTimes,
insertBlock,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
/**
* The modifier keys needed to invoke a 'select the next word' keyboard shortcut.
diff --git a/packages/tests-e2e/specs/manage-reusable-blocks.test.js b/packages/e2e-tests/specs/manage-reusable-blocks.test.js
similarity index 93%
rename from packages/tests-e2e/specs/manage-reusable-blocks.test.js
rename to packages/e2e-tests/specs/manage-reusable-blocks.test.js
index acd97baa175ed4..2eaa22e219f255 100644
--- a/packages/tests-e2e/specs/manage-reusable-blocks.test.js
+++ b/packages/e2e-tests/specs/manage-reusable-blocks.test.js
@@ -4,9 +4,9 @@
import path from 'path';
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { visitAdminPage } from '../support/utils';
+import { visitAdminPage } from '@wordpress/e2e-test-utils';
describe( 'Managing reusable blocks', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/mentions.test.js b/packages/e2e-tests/specs/mentions.test.js
similarity index 89%
rename from packages/tests-e2e/specs/mentions.test.js
rename to packages/e2e-tests/specs/mentions.test.js
index a289a8491b2984..2d2f220bc47402 100644
--- a/packages/tests-e2e/specs/mentions.test.js
+++ b/packages/e2e-tests/specs/mentions.test.js
@@ -1,11 +1,11 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
getEditedPostContent,
clickBlockAppender,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'autocomplete mentions', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/multi-block-selection.test.js b/packages/e2e-tests/specs/multi-block-selection.test.js
similarity index 98%
rename from packages/tests-e2e/specs/multi-block-selection.test.js
rename to packages/e2e-tests/specs/multi-block-selection.test.js
index b8d6c4fa2de7e5..3f1fb30370ef6f 100644
--- a/packages/tests-e2e/specs/multi-block-selection.test.js
+++ b/packages/e2e-tests/specs/multi-block-selection.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
insertBlock,
createNewPost,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Multi-block selection', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/navigable-toolbar.test.js b/packages/e2e-tests/specs/navigable-toolbar.test.js
similarity index 93%
rename from packages/tests-e2e/specs/navigable-toolbar.test.js
rename to packages/e2e-tests/specs/navigable-toolbar.test.js
index e3e58aa0599287..e14a45e1224429 100644
--- a/packages/tests-e2e/specs/navigable-toolbar.test.js
+++ b/packages/e2e-tests/specs/navigable-toolbar.test.js
@@ -4,9 +4,9 @@
import { forEach } from 'lodash';
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { createNewPost, pressKeyWithModifier } from '../support/utils';
+import { createNewPost, pressKeyWithModifier } from '@wordpress/e2e-test-utils';
describe( 'block toolbar', () => {
forEach( {
diff --git a/packages/tests-e2e/specs/new-post-default-content.test.js b/packages/e2e-tests/specs/new-post-default-content.test.js
similarity index 95%
rename from packages/tests-e2e/specs/new-post-default-content.test.js
rename to packages/e2e-tests/specs/new-post-default-content.test.js
index df5334319e3070..7460b2aaeac319 100644
--- a/packages/tests-e2e/specs/new-post-default-content.test.js
+++ b/packages/e2e-tests/specs/new-post-default-content.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -8,7 +8,7 @@ import {
findSidebarPanelWithTitle,
getEditedPostContent,
openDocumentSettingsSidebar,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'new editor filtered state', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/new-post.test.js b/packages/e2e-tests/specs/new-post.test.js
similarity index 97%
rename from packages/tests-e2e/specs/new-post.test.js
rename to packages/e2e-tests/specs/new-post.test.js
index c8dc83b6a25358..c4cb3fa082dcad 100644
--- a/packages/tests-e2e/specs/new-post.test.js
+++ b/packages/e2e-tests/specs/new-post.test.js
@@ -1,11 +1,11 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
createNewPost,
deactivatePlugin,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'new editor state', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/nux.test.js b/packages/e2e-tests/specs/nux.test.js
similarity index 99%
rename from packages/tests-e2e/specs/nux.test.js
rename to packages/e2e-tests/specs/nux.test.js
index 23fad060527baf..d8a64be089ecaf 100644
--- a/packages/tests-e2e/specs/nux.test.js
+++ b/packages/e2e-tests/specs/nux.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
@@ -7,7 +7,7 @@ import {
createNewPost,
saveDraft,
toggleScreenOption,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'New User Experience (NUX)', () => {
async function clickAllTips( page ) {
diff --git a/packages/tests-e2e/specs/plugins/__snapshots__/align-hook.test.js.snap b/packages/e2e-tests/specs/plugins/__snapshots__/align-hook.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/plugins/__snapshots__/align-hook.test.js.snap
rename to packages/e2e-tests/specs/plugins/__snapshots__/align-hook.test.js.snap
diff --git a/packages/tests-e2e/specs/plugins/__snapshots__/container-blocks.test.js.snap b/packages/e2e-tests/specs/plugins/__snapshots__/container-blocks.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/plugins/__snapshots__/container-blocks.test.js.snap
rename to packages/e2e-tests/specs/plugins/__snapshots__/container-blocks.test.js.snap
diff --git a/packages/tests-e2e/specs/plugins/__snapshots__/deprecated-node-matcher.test.js.snap b/packages/e2e-tests/specs/plugins/__snapshots__/deprecated-node-matcher.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/plugins/__snapshots__/deprecated-node-matcher.test.js.snap
rename to packages/e2e-tests/specs/plugins/__snapshots__/deprecated-node-matcher.test.js.snap
diff --git a/packages/tests-e2e/specs/plugins/__snapshots__/format-api.test.js.snap b/packages/e2e-tests/specs/plugins/__snapshots__/format-api.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/plugins/__snapshots__/format-api.test.js.snap
rename to packages/e2e-tests/specs/plugins/__snapshots__/format-api.test.js.snap
diff --git a/packages/tests-e2e/specs/__snapshots__/meta-attribute-block.test.js.snap b/packages/e2e-tests/specs/plugins/__snapshots__/meta-attribute-block.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/__snapshots__/meta-attribute-block.test.js.snap
rename to packages/e2e-tests/specs/plugins/__snapshots__/meta-attribute-block.test.js.snap
diff --git a/packages/tests-e2e/specs/plugins/__snapshots__/plugins-api.test.js.snap b/packages/e2e-tests/specs/plugins/__snapshots__/plugins-api.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/plugins/__snapshots__/plugins-api.test.js.snap
rename to packages/e2e-tests/specs/plugins/__snapshots__/plugins-api.test.js.snap
diff --git a/packages/tests-e2e/specs/plugins/__snapshots__/templates.test.js.snap b/packages/e2e-tests/specs/plugins/__snapshots__/templates.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/plugins/__snapshots__/templates.test.js.snap
rename to packages/e2e-tests/specs/plugins/__snapshots__/templates.test.js.snap
diff --git a/packages/tests-e2e/specs/plugins/__snapshots__/wp-editor-meta-box.test.js.snap b/packages/e2e-tests/specs/plugins/__snapshots__/wp-editor-meta-box.test.js.snap
similarity index 100%
rename from packages/tests-e2e/specs/plugins/__snapshots__/wp-editor-meta-box.test.js.snap
rename to packages/e2e-tests/specs/plugins/__snapshots__/wp-editor-meta-box.test.js.snap
diff --git a/packages/tests-e2e/specs/plugins/align-hook.test.js b/packages/e2e-tests/specs/plugins/align-hook.test.js
similarity index 98%
rename from packages/tests-e2e/specs/plugins/align-hook.test.js
rename to packages/e2e-tests/specs/plugins/align-hook.test.js
index 0828555221cc46..1fbe802f84142f 100644
--- a/packages/tests-e2e/specs/plugins/align-hook.test.js
+++ b/packages/e2e-tests/specs/plugins/align-hook.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -10,7 +10,7 @@ import {
insertBlock,
selectBlockByClientId,
setPostContent,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Align Hook Works As Expected', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/plugins/annotations.test.js b/packages/e2e-tests/specs/plugins/annotations.test.js
similarity index 98%
rename from packages/tests-e2e/specs/plugins/annotations.test.js
rename to packages/e2e-tests/specs/plugins/annotations.test.js
index df07648c2a0016..5fe99a352eec60 100644
--- a/packages/tests-e2e/specs/plugins/annotations.test.js
+++ b/packages/e2e-tests/specs/plugins/annotations.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
clickOnMoreMenuItem,
createNewPost,
deactivatePlugin,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
const clickOnBlockSettingsMenuItem = async ( buttonLabel ) => {
await expect( page ).toClick( '.editor-block-settings-menu__toggle' );
diff --git a/packages/tests-e2e/specs/plugins/block-icons.test.js b/packages/e2e-tests/specs/plugins/block-icons.test.js
similarity index 98%
rename from packages/tests-e2e/specs/plugins/block-icons.test.js
rename to packages/e2e-tests/specs/plugins/block-icons.test.js
index a2f81a234588ae..0e7a15f69580d6 100644
--- a/packages/tests-e2e/specs/plugins/block-icons.test.js
+++ b/packages/e2e-tests/specs/plugins/block-icons.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -8,7 +8,7 @@ import {
insertBlock,
pressKeyWithModifier,
searchForBlock,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
const INSERTER_BUTTON_SELECTOR = '.components-popover__content .editor-block-types-list__item';
const INSERTER_ICON_WRAPPER_SELECTOR = `${ INSERTER_BUTTON_SELECTOR } .editor-block-types-list__item-icon`;
diff --git a/packages/tests-e2e/specs/plugins/container-blocks.test.js b/packages/e2e-tests/specs/plugins/container-blocks.test.js
similarity index 97%
rename from packages/tests-e2e/specs/plugins/container-blocks.test.js
rename to packages/e2e-tests/specs/plugins/container-blocks.test.js
index e8b6461b7bf289..2d32224bb3503b 100644
--- a/packages/tests-e2e/specs/plugins/container-blocks.test.js
+++ b/packages/e2e-tests/specs/plugins/container-blocks.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -8,7 +8,7 @@ import {
getEditedPostContent,
insertBlock,
switchEditorModeTo,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'InnerBlocks Template Sync', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/plugins/deprecated-node-matcher.test.js b/packages/e2e-tests/specs/plugins/deprecated-node-matcher.test.js
similarity index 94%
rename from packages/tests-e2e/specs/plugins/deprecated-node-matcher.test.js
rename to packages/e2e-tests/specs/plugins/deprecated-node-matcher.test.js
index 7fc0af8c3d6d8a..21b587a00c28b4 100644
--- a/packages/tests-e2e/specs/plugins/deprecated-node-matcher.test.js
+++ b/packages/e2e-tests/specs/plugins/deprecated-node-matcher.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -8,7 +8,7 @@ import {
getEditedPostContent,
insertBlock,
pressKeyWithModifier,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Deprecated Node Matcher', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/plugins/format-api.test.js b/packages/e2e-tests/specs/plugins/format-api.test.js
similarity index 94%
rename from packages/tests-e2e/specs/plugins/format-api.test.js
rename to packages/e2e-tests/specs/plugins/format-api.test.js
index 9b69ec18515672..c8d22a60f356d7 100644
--- a/packages/tests-e2e/specs/plugins/format-api.test.js
+++ b/packages/e2e-tests/specs/plugins/format-api.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -8,7 +8,7 @@ import {
deactivatePlugin,
getEditedPostContent,
pressKeyWithModifier,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Using Format API', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/plugins/hooks-api.test.js b/packages/e2e-tests/specs/plugins/hooks-api.test.js
similarity index 95%
rename from packages/tests-e2e/specs/plugins/hooks-api.test.js
rename to packages/e2e-tests/specs/plugins/hooks-api.test.js
index 9f13c59f97aaea..7ad6f518c1e699 100644
--- a/packages/tests-e2e/specs/plugins/hooks-api.test.js
+++ b/packages/e2e-tests/specs/plugins/hooks-api.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
clickBlockAppender,
createNewPost,
deactivatePlugin,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Using Hooks API', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/plugins/meta-attribute-block.test.js b/packages/e2e-tests/specs/plugins/meta-attribute-block.test.js
similarity index 95%
rename from packages/tests-e2e/specs/plugins/meta-attribute-block.test.js
rename to packages/e2e-tests/specs/plugins/meta-attribute-block.test.js
index 3b735d244689ee..905807501774f6 100644
--- a/packages/tests-e2e/specs/plugins/meta-attribute-block.test.js
+++ b/packages/e2e-tests/specs/plugins/meta-attribute-block.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -8,7 +8,7 @@ import {
getEditedPostContent,
insertBlock,
saveDraft,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Block with a meta attribute', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/plugins/meta-boxes.test.js b/packages/e2e-tests/specs/plugins/meta-boxes.test.js
similarity index 98%
rename from packages/tests-e2e/specs/plugins/meta-boxes.test.js
rename to packages/e2e-tests/specs/plugins/meta-boxes.test.js
index 79d4a128597c5a..94a0c04c81bcb7 100644
--- a/packages/tests-e2e/specs/plugins/meta-boxes.test.js
+++ b/packages/e2e-tests/specs/plugins/meta-boxes.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -9,7 +9,7 @@ import {
insertBlock,
openDocumentSettingsSidebar,
publishPost,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Meta boxes', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/plugins/plugins-api.test.js b/packages/e2e-tests/specs/plugins/plugins-api.test.js
similarity index 97%
rename from packages/tests-e2e/specs/plugins/plugins-api.test.js
rename to packages/e2e-tests/specs/plugins/plugins-api.test.js
index 0c1de09b48423b..d264bb736ed082 100644
--- a/packages/tests-e2e/specs/plugins/plugins-api.test.js
+++ b/packages/e2e-tests/specs/plugins/plugins-api.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -10,7 +10,7 @@ import {
openDocumentSettingsSidebar,
openPublishPanel,
publishPost,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Using Plugins API', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/plugins/templates.test.js b/packages/e2e-tests/specs/plugins/templates.test.js
similarity index 98%
rename from packages/tests-e2e/specs/plugins/templates.test.js
rename to packages/e2e-tests/specs/plugins/templates.test.js
index f2fce3789ca169..749842554fe664 100644
--- a/packages/tests-e2e/specs/plugins/templates.test.js
+++ b/packages/e2e-tests/specs/plugins/templates.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -12,7 +12,7 @@ import {
switchUserToAdmin,
switchUserToTest,
visitAdminPage,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'templates', () => {
describe( 'Using a CPT with a predefined template', () => {
diff --git a/packages/tests-e2e/specs/plugins/wp-editor-meta-box.test.js b/packages/e2e-tests/specs/plugins/wp-editor-meta-box.test.js
similarity index 93%
rename from packages/tests-e2e/specs/plugins/wp-editor-meta-box.test.js
rename to packages/e2e-tests/specs/plugins/wp-editor-meta-box.test.js
index 7d76c8f4e3341b..c99da39b7cfe00 100644
--- a/packages/tests-e2e/specs/plugins/wp-editor-meta-box.test.js
+++ b/packages/e2e-tests/specs/plugins/wp-editor-meta-box.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
createNewPost,
deactivatePlugin,
publishPost,
-} from '../../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'WP Editor Meta Boxes', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/popovers.test.js b/packages/e2e-tests/specs/popovers.test.js
similarity index 87%
rename from packages/tests-e2e/specs/popovers.test.js
rename to packages/e2e-tests/specs/popovers.test.js
index dff7692aa9e9d3..5a1e17817dabff 100644
--- a/packages/tests-e2e/specs/popovers.test.js
+++ b/packages/e2e-tests/specs/popovers.test.js
@@ -1,7 +1,7 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { createNewPost } from '../support/utils';
+import { createNewPost } from '@wordpress/e2e-test-utils';
describe( 'popovers', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/post-visibility.test.js b/packages/e2e-tests/specs/post-visibility.test.js
similarity index 92%
rename from packages/tests-e2e/specs/post-visibility.test.js
rename to packages/e2e-tests/specs/post-visibility.test.js
index 70ec9dcff905cb..0c93dcdef0f896 100644
--- a/packages/tests-e2e/specs/post-visibility.test.js
+++ b/packages/e2e-tests/specs/post-visibility.test.js
@@ -1,11 +1,11 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
setBrowserViewport,
createNewPost,
openDocumentSettingsSidebar,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Post visibility', () => {
[ 'large', 'small' ].forEach( ( viewport ) => {
diff --git a/packages/tests-e2e/specs/preferences.test.js b/packages/e2e-tests/specs/preferences.test.js
similarity index 94%
rename from packages/tests-e2e/specs/preferences.test.js
rename to packages/e2e-tests/specs/preferences.test.js
index 52e5e2c3c8558a..24cf347d96501e 100644
--- a/packages/tests-e2e/specs/preferences.test.js
+++ b/packages/e2e-tests/specs/preferences.test.js
@@ -1,7 +1,7 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { createNewPost } from '../support/utils';
+import { createNewPost } from '@wordpress/e2e-test-utils';
describe( 'preferences', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/preview.test.js b/packages/e2e-tests/specs/preview.test.js
similarity index 98%
rename from packages/tests-e2e/specs/preview.test.js
rename to packages/e2e-tests/specs/preview.test.js
index 0d0e00385f4cef..8488ffe1ec1e31 100644
--- a/packages/tests-e2e/specs/preview.test.js
+++ b/packages/e2e-tests/specs/preview.test.js
@@ -5,14 +5,14 @@ import { last } from 'lodash';
import { parse } from 'url';
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
createURL,
publishPost,
saveDraft,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Preview', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/publish-button.test.js b/packages/e2e-tests/specs/publish-button.test.js
similarity index 97%
rename from packages/tests-e2e/specs/publish-button.test.js
rename to packages/e2e-tests/specs/publish-button.test.js
index d70ca1998fe130..da5cf1d6161249 100644
--- a/packages/tests-e2e/specs/publish-button.test.js
+++ b/packages/e2e-tests/specs/publish-button.test.js
@@ -3,7 +3,7 @@ import {
disablePrePublishChecks,
enablePrePublishChecks,
createNewPost,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'PostPublishButton', () => {
let werePrePublishChecksEnabled;
diff --git a/packages/tests-e2e/specs/publish-panel.test.js b/packages/e2e-tests/specs/publish-panel.test.js
similarity index 98%
rename from packages/tests-e2e/specs/publish-panel.test.js
rename to packages/e2e-tests/specs/publish-panel.test.js
index 274051666701f7..026c3d8ee35fd9 100644
--- a/packages/tests-e2e/specs/publish-panel.test.js
+++ b/packages/e2e-tests/specs/publish-panel.test.js
@@ -6,7 +6,7 @@ import {
openPublishPanel,
pressKeyWithModifier,
publishPost,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'PostPublishPanel', () => {
let werePrePublishChecksEnabled;
diff --git a/packages/tests-e2e/specs/publishing.test.js b/packages/e2e-tests/specs/publishing.test.js
similarity index 98%
rename from packages/tests-e2e/specs/publishing.test.js
rename to packages/e2e-tests/specs/publishing.test.js
index e2face65187a3d..b484428e4fcc50 100644
--- a/packages/tests-e2e/specs/publishing.test.js
+++ b/packages/e2e-tests/specs/publishing.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
@@ -9,7 +9,7 @@ import {
disablePrePublishChecks,
arePrePublishChecksEnabled,
setBrowserViewport,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Publishing', () => {
[ 'post', 'page' ].forEach( ( postType ) => {
diff --git a/packages/tests-e2e/specs/reusable-blocks.test.js b/packages/e2e-tests/specs/reusable-blocks.test.js
similarity index 99%
rename from packages/tests-e2e/specs/reusable-blocks.test.js
rename to packages/e2e-tests/specs/reusable-blocks.test.js
index a73f6917440ddf..f1ef297f311ba8 100644
--- a/packages/tests-e2e/specs/reusable-blocks.test.js
+++ b/packages/e2e-tests/specs/reusable-blocks.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
insertBlock,
@@ -7,7 +7,7 @@ import {
pressKeyWithModifier,
searchForBlock,
getEditedPostContent,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
function waitForAndAcceptDialog() {
return new Promise( ( resolve ) => {
diff --git a/packages/tests-e2e/specs/rich-text.test.js b/packages/e2e-tests/specs/rich-text.test.js
similarity index 98%
rename from packages/tests-e2e/specs/rich-text.test.js
rename to packages/e2e-tests/specs/rich-text.test.js
index 6b472f2085c6d6..0773f295566ad8 100644
--- a/packages/tests-e2e/specs/rich-text.test.js
+++ b/packages/e2e-tests/specs/rich-text.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
@@ -7,7 +7,7 @@ import {
insertBlock,
clickBlockAppender,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'RichText', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/shortcut-help.test.js b/packages/e2e-tests/specs/shortcut-help.test.js
similarity index 95%
rename from packages/tests-e2e/specs/shortcut-help.test.js
rename to packages/e2e-tests/specs/shortcut-help.test.js
index 064e8466bc3aab..03c53949b436dd 100644
--- a/packages/tests-e2e/specs/shortcut-help.test.js
+++ b/packages/e2e-tests/specs/shortcut-help.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
clickOnMoreMenuItem,
clickOnCloseModalButton,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'keyboard shortcut help modal', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/sidebar-permalink-panel.test.js b/packages/e2e-tests/specs/sidebar-permalink-panel.test.js
similarity index 97%
rename from packages/tests-e2e/specs/sidebar-permalink-panel.test.js
rename to packages/e2e-tests/specs/sidebar-permalink-panel.test.js
index 95e18e3df49bdc..16de106f570e67 100644
--- a/packages/tests-e2e/specs/sidebar-permalink-panel.test.js
+++ b/packages/e2e-tests/specs/sidebar-permalink-panel.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
activatePlugin,
@@ -8,7 +8,7 @@ import {
findSidebarPanelWithTitle,
openDocumentSettingsSidebar,
publishPost,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
// This tests are not together with the remaining sidebar tests,
// because we need to publish/save a post, to correctly test the permalink panel.
diff --git a/packages/tests-e2e/specs/sidebar.test.js b/packages/e2e-tests/specs/sidebar.test.js
similarity index 98%
rename from packages/tests-e2e/specs/sidebar.test.js
rename to packages/e2e-tests/specs/sidebar.test.js
index 81cd4dfd57c64e..def5d0f5011413 100644
--- a/packages/tests-e2e/specs/sidebar.test.js
+++ b/packages/e2e-tests/specs/sidebar.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
findSidebarPanelWithTitle,
@@ -8,7 +8,7 @@ import {
openDocumentSettingsSidebar,
pressKeyWithModifier,
setBrowserViewport,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
const SIDEBAR_SELECTOR = '.edit-post-sidebar';
const ACTIVE_SIDEBAR_TAB_SELECTOR = '.edit-post-sidebar__panel-tab.is-active';
diff --git a/packages/tests-e2e/specs/splitting-merging.test.js b/packages/e2e-tests/specs/splitting-merging.test.js
similarity index 99%
rename from packages/tests-e2e/specs/splitting-merging.test.js
rename to packages/e2e-tests/specs/splitting-merging.test.js
index e45a62fff6507d..b5b24ce6345cdd 100644
--- a/packages/tests-e2e/specs/splitting-merging.test.js
+++ b/packages/e2e-tests/specs/splitting-merging.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
createNewPost,
@@ -7,7 +7,7 @@ import {
getEditedPostContent,
pressKeyTimes,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'splitting and merging blocks', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/style-variation.test.js b/packages/e2e-tests/specs/style-variation.test.js
similarity index 94%
rename from packages/tests-e2e/specs/style-variation.test.js
rename to packages/e2e-tests/specs/style-variation.test.js
index 660d779b646a43..0d1c2e758b0426 100644
--- a/packages/tests-e2e/specs/style-variation.test.js
+++ b/packages/e2e-tests/specs/style-variation.test.js
@@ -1,7 +1,7 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
-import { createNewPost, insertBlock, getEditedPostContent } from '../support/utils';
+import { createNewPost, insertBlock, getEditedPostContent } from '@wordpress/e2e-test-utils';
describe( 'adding blocks', () => {
beforeAll( async () => {
diff --git a/packages/tests-e2e/specs/taxonomies.test.js b/packages/e2e-tests/specs/taxonomies.test.js
similarity index 97%
rename from packages/tests-e2e/specs/taxonomies.test.js
rename to packages/e2e-tests/specs/taxonomies.test.js
index 6ee40e925b2d44..adb596e9d296a9 100644
--- a/packages/tests-e2e/specs/taxonomies.test.js
+++ b/packages/e2e-tests/specs/taxonomies.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
findSidebarPanelWithTitle,
createNewPost,
openDocumentSettingsSidebar,
publishPost,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'Taxonomies', () => {
const canCreatTermInTaxonomy = ( taxonomy ) => {
diff --git a/packages/tests-e2e/specs/undo.test.js b/packages/e2e-tests/specs/undo.test.js
similarity index 97%
rename from packages/tests-e2e/specs/undo.test.js
rename to packages/e2e-tests/specs/undo.test.js
index 5a9eb0351ec412..71caccf09b3c3f 100644
--- a/packages/tests-e2e/specs/undo.test.js
+++ b/packages/e2e-tests/specs/undo.test.js
@@ -1,12 +1,12 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
getEditedPostContent,
createNewPost,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'undo', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/writing-flow.test.js b/packages/e2e-tests/specs/writing-flow.test.js
similarity index 99%
rename from packages/tests-e2e/specs/writing-flow.test.js
rename to packages/e2e-tests/specs/writing-flow.test.js
index 24e21642862f6f..ee5b2b2d1bc2f3 100644
--- a/packages/tests-e2e/specs/writing-flow.test.js
+++ b/packages/e2e-tests/specs/writing-flow.test.js
@@ -1,5 +1,5 @@
/**
- * Internal dependencies
+ * WordPress dependencies
*/
import {
clickBlockAppender,
@@ -7,7 +7,7 @@ import {
createNewPost,
pressKeyTimes,
pressKeyWithModifier,
-} from '../support/utils';
+} from '@wordpress/e2e-test-utils';
describe( 'adding blocks', () => {
beforeEach( async () => {
diff --git a/packages/tests-e2e/specs/plugins/__snapshots__/meta-attribute-block.test.js.snap b/packages/tests-e2e/specs/plugins/__snapshots__/meta-attribute-block.test.js.snap
deleted file mode 100644
index 076a8ebbaac6eb..00000000000000
--- a/packages/tests-e2e/specs/plugins/__snapshots__/meta-attribute-block.test.js.snap
+++ /dev/null
@@ -1,3 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Block with a meta attribute Should persist the meta attribute properly 1`] = `""`;
diff --git a/test/unit/jest.config.json b/test/unit/jest.config.json
index 90efca58905337..ed9e9ebc52774c 100644
--- a/test/unit/jest.config.json
+++ b/test/unit/jest.config.json
@@ -11,7 +11,7 @@
"testURL": "http://localhost",
"testPathIgnorePatterns": [
"/node_modules/",
- "/packages/tests-e2e",
+ "/packages/e2e-tests",
"/.*/build/",
"/.*/build-module/"
],