From afb6afec53c4358d3aa83ca42c85a0494b5dd267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=28Greg=29=20Zi=C3=B3=C5=82kowski?= Date: Mon, 7 Jan 2019 11:53:33 +0100 Subject: [PATCH] Tests: Move e2e tests to the npm package (#12465) --- .eslintignore | 2 +- .eslintrc.js | 2 +- .travis.yml | 8 ++-- docker-compose.yml | 8 ++-- docs/manifest.json | 6 +++ jsconfig.json | 2 +- package-lock.json | 12 ++++++ package.json | 4 +- packages/tests-e2e/.npmrc | 1 + packages/tests-e2e/README.md | 13 +++++++ .../assets/10x10_e2e_test_image_z9T8jK.png | Bin .../assets/greeting-reusable-block.json | 0 .../mu-plugins}/disable-login-autofocus.php | 0 packages/tests-e2e/package.json | 36 ++++++++++++++++++ .../tests-e2e/plugins}/align-hook.php | 0 .../tests-e2e/plugins}/align-hook/index.js | 0 .../tests-e2e/plugins}/block-icons.php | 0 .../tests-e2e/plugins}/block-icons/index.js | 0 .../plugins}/container-without-paragraph.php | 0 .../container-without-paragraph/index.js | 0 .../tests-e2e/plugins}/custom-post-types.php | 0 .../plugins}/default-post-content.php | 0 .../plugins}/deprecated-node-matcher.php | 0 .../plugins}/deprecated-node-matcher/index.js | 0 .../tests-e2e/plugins}/format-api.php | 0 .../tests-e2e/plugins}/format-api/index.js | 0 .../tests-e2e/plugins}/hooks-api.php | 0 .../tests-e2e/plugins}/hooks-api/index.js | 0 .../plugins}/inner-blocks-templates.php | 0 .../plugins}/inner-blocks-templates/index.js | 0 .../plugins}/meta-attribute-block.php | 0 .../plugins}/meta-attribute-block/index.js | 0 .../tests-e2e/plugins}/meta-box.php | 0 .../tests-e2e/plugins}/plugins-api.php | 0 .../plugins-api/annotations-sidebar.js | 0 .../plugins}/plugins-api/post-status-info.js | 0 .../plugins}/plugins-api/publish-panel.js | 0 .../tests-e2e/plugins}/plugins-api/sidebar.js | 0 .../tests-e2e/plugins}/post-formats.php | 0 .../tests-e2e/plugins}/templates.php | 0 .../tests-e2e/plugins}/wp-editor-metabox.php | 0 .../__snapshots__/adding-blocks.test.js.snap | 0 .../__snapshots__/align-hook.test.js.snap | 0 .../__snapshots__/block-deletion.test.js.snap | 0 .../block-hierarchy-navigation.test.js.snap | 0 .../compatibility-classic-editor.test.js.snap | 0 .../container-blocks.test.js.snap | 0 .../convert-block-type.test.js.snap | 0 .../deprecated-node-matcher.test.js.snap | 0 .../__snapshots__/embedding.test.js.snap | 0 .../font-size-picker.test.js.snap | 0 .../__snapshots__/format-api.test.js.snap | 0 .../specs/__snapshots__/links.test.js.snap | 0 .../specs/__snapshots__/mentions.test.js.snap | 0 .../meta-attribute-block.test.js.snap | 0 .../__snapshots__/plugins-api.test.js.snap | 0 .../reusable-blocks.test.js.snap | 0 .../__snapshots__/rich-text.test.js.snap | 0 .../splitting-merging.test.js.snap | 0 .../style-variation.test.js.snap | 0 .../__snapshots__/templates.test.js.snap | 0 .../specs/__snapshots__/undo.test.js.snap | 0 .../wp-editor-meta-box.test.js.snap | 0 .../__snapshots__/writing-flow.test.js.snap | 0 .../tests-e2e}/specs/a11y.test.js | 0 .../tests-e2e}/specs/adding-blocks.test.js | 0 .../specs/adding-inline-tokens.test.js | 0 .../tests-e2e}/specs/align-hook.test.js | 0 .../tests-e2e}/specs/annotations.test.js | 0 .../tests-e2e}/specs/block-deletion.test.js | 0 .../specs/block-hierarchy-navigation.test.js | 0 .../tests-e2e}/specs/block-icons.test.js | 0 .../tests-e2e}/specs/block-mover.test.js | 0 .../tests-e2e}/specs/block-switcher.test.js | 0 .../blocks/__snapshots__/classic.test.js.snap | 0 .../blocks/__snapshots__/code.test.js.snap | 0 .../blocks/__snapshots__/heading.test.js.snap | 0 .../blocks/__snapshots__/html.test.js.snap | 0 .../blocks/__snapshots__/list.test.js.snap | 0 .../blocks/__snapshots__/quote.test.js.snap | 0 .../__snapshots__/separator.test.js.snap | 0 .../tests-e2e}/specs/blocks/classic.test.js | 0 .../tests-e2e}/specs/blocks/code.test.js | 0 .../tests-e2e}/specs/blocks/heading.test.js | 0 .../tests-e2e}/specs/blocks/html.test.js | 0 .../tests-e2e}/specs/blocks/list.test.js | 0 .../tests-e2e}/specs/blocks/quote.test.js | 0 .../tests-e2e}/specs/blocks/separator.test.js | 0 .../tests-e2e}/specs/change-detection.test.js | 0 .../compatibility-classic-editor.test.js | 0 .../tests-e2e}/specs/container-blocks.test.js | 0 .../specs/convert-block-type.test.js | 0 .../tests-e2e}/specs/datepicker.test.js | 0 .../tests-e2e}/specs/demo.test.js | 0 .../specs/deprecated-node-matcher.test.js | 0 .../tests-e2e}/specs/editor-modes.test.js | 0 .../tests-e2e}/specs/embedding.test.js | 0 .../tests-e2e}/specs/font-size-picker.test.js | 0 .../tests-e2e}/specs/format-api.test.js | 0 .../tests-e2e}/specs/fullscreen-mode.test.js | 0 .../tests-e2e}/specs/hooks-api.test.js | 0 .../tests-e2e}/specs/invalid-block.test.js | 0 .../tests-e2e}/specs/links.test.js | 0 .../specs/manage-reusable-blocks.test.js | 0 .../tests-e2e}/specs/mentions.test.js | 0 .../specs/meta-attribute-block.test.js | 0 .../tests-e2e}/specs/meta-boxes.test.js | 0 .../specs/multi-block-selection.test.js | 0 .../specs/navigable-toolbar.test.js | 0 .../specs/new-post-default-content.test.js | 0 .../tests-e2e}/specs/new-post.test.js | 0 .../tests-e2e}/specs/nux.test.js | 0 .../tests-e2e}/specs/plugins-api.test.js | 0 .../tests-e2e}/specs/popovers.test.js | 0 .../tests-e2e}/specs/post-visibility.test.js | 0 .../tests-e2e}/specs/preferences.test.js | 0 .../tests-e2e}/specs/preview.test.js | 0 .../tests-e2e}/specs/publish-button.test.js | 0 .../tests-e2e}/specs/publish-panel.test.js | 0 .../tests-e2e}/specs/publishing.test.js | 0 .../tests-e2e}/specs/reusable-blocks.test.js | 0 .../tests-e2e}/specs/rich-text.test.js | 0 .../tests-e2e}/specs/shortcut-help.test.js | 0 .../specs/sidebar-permalink-panel.test.js | 0 .../tests-e2e}/specs/sidebar.test.js | 0 .../specs/splitting-merging.test.js | 0 .../tests-e2e}/specs/style-variation.test.js | 0 .../tests-e2e}/specs/taxonomies.test.js | 0 .../tests-e2e}/specs/templates.test.js | 0 .../tests-e2e}/specs/undo.test.js | 0 .../specs/wp-editor-meta-box.test.js | 0 .../tests-e2e}/specs/writing-flow.test.js | 0 .../support/setup-test-framework.js | 0 .../support/utils/activate-plugin.js | 2 +- .../utils/are-pre-publish-checks-enabled.js | 0 .../support/utils/clear-local-storage.js | 0 .../support/utils/click-block-appender.js | 0 .../tests-e2e}/support/utils/click-button.js | 0 .../utils/click-on-close-modal-button.js | 0 .../support/utils/click-on-more-menu-item.js | 0 .../support/utils/create-new-post.js | 0 .../tests-e2e}/support/utils/create-url.js | 0 .../support/utils/deactivate-plugin.js | 2 +- .../utils/disable-pre-publish-checks.js | 0 .../utils/enable-page-dialog-accept.js | 0 .../utils/enable-pre-publish-checks.js | 0 .../support/utils/ensure-sidebar-opened.js | 0 .../utils/find-sidebar-panel-with-title.js | 0 .../support/utils/get-all-blocks.js | 0 .../utils/get-available-block-transforms.js | 0 .../support/utils/get-edited-post-content.js | 0 .../support/utils/has-block-switcher.js | 0 .../tests-e2e}/support/utils/index.js | 0 .../tests-e2e}/support/utils/insert-block.js | 0 .../support/utils/install-plugin.js | 2 +- .../support/utils/is-current-url.js | 0 .../tests-e2e}/support/utils/login-user.js | 0 .../utils/mocks/create-embedding-matcher.js | 0 .../utils/mocks/create-json-response.js | 0 .../support/utils/mocks/create-url-matcher.js | 0 .../tests-e2e}/support/utils/mocks/index.js | 0 .../support/utils/mocks/mock-or-transform.js | 0 .../utils/mocks/set-up-response-mocking.js | 0 .../support/utils/observe-focus-loss.js | 0 .../utils/open-document-settings-sidebar.js | 0 .../support/utils/open-publish-panel.js | 0 .../support/utils/press-key-times.js | 0 .../support/utils/press-key-with-modifier.js | 0 ...h-post-with-pre-publish-checks-disabled.js | 0 .../tests-e2e}/support/utils/publish-post.js | 0 .../tests-e2e}/support/utils/save-draft.js | 0 .../support/utils/search-for-block.js | 0 .../utils/select-block-by-client-id.js | 0 .../support/utils/set-browser-viewport.js | 0 .../support/utils/set-post-content.js | 0 .../tests-e2e}/support/utils/shared/config.js | 0 .../support/utils/shared/get-json-response.js | 0 .../support/utils/switch-editor-mode-to.js | 3 +- .../support/utils/switch-user-to-admin.js | 0 .../support/utils/switch-user-to-test.js | 0 .../support/utils/toggle-screen-option.js | 0 .../support/utils/transform-block-to.js | 0 .../support/utils/uninstall-plugin.js | 2 +- .../support/utils/visit-admin-page.js | 0 .../utils/wait-for-window-dimensions.js | 0 test/unit/jest.config.json | 2 +- 186 files changed, 88 insertions(+), 19 deletions(-) create mode 100644 packages/tests-e2e/.npmrc create mode 100644 packages/tests-e2e/README.md rename {test/e2e => packages/tests-e2e}/assets/10x10_e2e_test_image_z9T8jK.png (100%) rename {test/e2e => packages/tests-e2e}/assets/greeting-reusable-block.json (100%) rename {test/e2e/test-mu-plugins => packages/tests-e2e/mu-plugins}/disable-login-autofocus.php (100%) create mode 100644 packages/tests-e2e/package.json rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/align-hook.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/align-hook/index.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/block-icons.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/block-icons/index.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/container-without-paragraph.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/container-without-paragraph/index.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/custom-post-types.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/default-post-content.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/deprecated-node-matcher.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/deprecated-node-matcher/index.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/format-api.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/format-api/index.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/hooks-api.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/hooks-api/index.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/inner-blocks-templates.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/inner-blocks-templates/index.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/meta-attribute-block.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/meta-attribute-block/index.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/meta-box.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/plugins-api.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/plugins-api/annotations-sidebar.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/plugins-api/post-status-info.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/plugins-api/publish-panel.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/plugins-api/sidebar.js (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/post-formats.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/templates.php (100%) rename {test/e2e/test-plugins => packages/tests-e2e/plugins}/wp-editor-metabox.php (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/adding-blocks.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/align-hook.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/block-deletion.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/block-hierarchy-navigation.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/compatibility-classic-editor.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/container-blocks.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/convert-block-type.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/deprecated-node-matcher.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/embedding.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/font-size-picker.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/format-api.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/links.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/mentions.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/meta-attribute-block.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/plugins-api.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/reusable-blocks.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/rich-text.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/splitting-merging.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/style-variation.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/templates.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/undo.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/wp-editor-meta-box.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/__snapshots__/writing-flow.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/a11y.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/adding-blocks.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/adding-inline-tokens.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/align-hook.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/annotations.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/block-deletion.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/block-hierarchy-navigation.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/block-icons.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/block-mover.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/block-switcher.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/__snapshots__/classic.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/__snapshots__/code.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/__snapshots__/heading.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/__snapshots__/html.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/__snapshots__/list.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/__snapshots__/quote.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/__snapshots__/separator.test.js.snap (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/classic.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/code.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/heading.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/html.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/list.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/quote.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/blocks/separator.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/change-detection.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/compatibility-classic-editor.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/container-blocks.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/convert-block-type.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/datepicker.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/demo.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/deprecated-node-matcher.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/editor-modes.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/embedding.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/font-size-picker.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/format-api.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/fullscreen-mode.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/hooks-api.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/invalid-block.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/links.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/manage-reusable-blocks.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/mentions.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/meta-attribute-block.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/meta-boxes.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/multi-block-selection.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/navigable-toolbar.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/new-post-default-content.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/new-post.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/nux.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/plugins-api.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/popovers.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/post-visibility.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/preferences.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/preview.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/publish-button.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/publish-panel.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/publishing.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/reusable-blocks.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/rich-text.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/shortcut-help.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/sidebar-permalink-panel.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/sidebar.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/splitting-merging.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/style-variation.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/taxonomies.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/templates.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/undo.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/wp-editor-meta-box.test.js (100%) rename {test/e2e => packages/tests-e2e}/specs/writing-flow.test.js (100%) rename {test/e2e => packages/tests-e2e}/support/setup-test-framework.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/activate-plugin.js (95%) rename {test/e2e => packages/tests-e2e}/support/utils/are-pre-publish-checks-enabled.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/clear-local-storage.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/click-block-appender.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/click-button.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/click-on-close-modal-button.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/click-on-more-menu-item.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/create-new-post.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/create-url.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/deactivate-plugin.js (95%) rename {test/e2e => packages/tests-e2e}/support/utils/disable-pre-publish-checks.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/enable-page-dialog-accept.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/enable-pre-publish-checks.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/ensure-sidebar-opened.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/find-sidebar-panel-with-title.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/get-all-blocks.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/get-available-block-transforms.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/get-edited-post-content.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/has-block-switcher.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/index.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/insert-block.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/install-plugin.js (96%) rename {test/e2e => packages/tests-e2e}/support/utils/is-current-url.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/login-user.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/mocks/create-embedding-matcher.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/mocks/create-json-response.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/mocks/create-url-matcher.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/mocks/index.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/mocks/mock-or-transform.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/mocks/set-up-response-mocking.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/observe-focus-loss.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/open-document-settings-sidebar.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/open-publish-panel.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/press-key-times.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/press-key-with-modifier.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/publish-post-with-pre-publish-checks-disabled.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/publish-post.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/save-draft.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/search-for-block.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/select-block-by-client-id.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/set-browser-viewport.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/set-post-content.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/shared/config.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/shared/get-json-response.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/switch-editor-mode-to.js (86%) rename {test/e2e => packages/tests-e2e}/support/utils/switch-user-to-admin.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/switch-user-to-test.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/toggle-screen-option.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/transform-block-to.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/uninstall-plugin.js (96%) rename {test/e2e => packages/tests-e2e}/support/utils/visit-admin-page.js (100%) rename {test/e2e => packages/tests-e2e}/support/utils/wait-for-window-dimensions.js (100%) diff --git a/.eslintignore b/.eslintignore index cfc995e9e9aef4..57cc5ea6a6336b 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,6 +1,6 @@ build build-module node_modules -test/e2e/test-plugins +packages/tests-e2e/plugins vendor packages/block-serialization-spec-parser/parser.js diff --git a/.eslintrc.js b/.eslintrc.js index af4bda32427a94..9bce17b6e61f94 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -182,7 +182,7 @@ module.exports = { }, overrides: [ { - files: [ 'test/e2e/**/*.js' ], + files: [ 'packages/tests-e2e/**/*.js' ], env: { browser: true, }, diff --git a/.travis.yml b/.travis.yml index 192c1b00f99596..250eb24ac2af5e 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=/test/e2e/specs/ --listTests > ~/.jest-e2e-tests + - $( npm bin )/wp-scripts test-e2e --testPathPattern=/packages/tests-e2e/specs/ --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=/test/e2e/specs/ --listTests > ~/.jest-e2e-tests + - $( npm bin )/wp-scripts test-e2e --testPathPattern=/packages/tests-e2e/specs/ --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=/test/e2e/specs/ --listTests > ~/.jest-e2e-tests + - $( npm bin )/wp-scripts test-e2e --testPathPattern=/packages/tests-e2e/specs/ --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=/test/e2e/specs/ --listTests > ~/.jest-e2e-tests + - $( npm bin )/wp-scripts test-e2e --testPathPattern=/packages/tests-e2e/specs/ --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 797b3f7f0a8e63..234da4726c5d03 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 - - ./test/e2e/test-plugins:/var/www/html/wp-content/plugins/gutenberg-test-plugins - - ./test/e2e/test-mu-plugins:/var/www/html/wp-content/mu-plugins + - ./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 depends_on: - mysql @@ -59,8 +59,8 @@ services: volumes: - wordpress_e2e_tests:/var/www/html - .:/var/www/html/wp-content/plugins/gutenberg - - ./test/e2e/test-plugins:/var/www/html/wp-content/plugins/gutenberg-test-plugins - - ./test/e2e/test-mu-plugins:/var/www/html/wp-content/mu-plugins + - ./packages/tests-e2e/plugins:/var/www/html/wp-content/plugins/gutenberg-test-plugins + - ./test/e2e/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 4dc762893f571b..40506ab5e932e7 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -653,6 +653,12 @@ "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 7e800a9c053b43..c3f3e3de874e54 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -9,7 +9,7 @@ "build", "build-module", "node_modules", - "test/e2e/test-plugins", + "packages/tests-e2e/plugins", "vendor" ] } diff --git a/package-lock.json b/package-lock.json index 61b1904fc0b207..8d73b5d4671a2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2787,6 +2787,18 @@ "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 f9089711250400..a7355d5faadbe5 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "@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", @@ -86,7 +87,6 @@ "husky": "0.14.3", "is-plain-obj": "1.1.0", "is-equal-shallow": "0.1.3", - "jest-puppeteer": "3.2.1", "jsdom": "11.12.0", "lerna": "3.4.3", "lint-staged": "7.3.0", @@ -175,7 +175,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=./test/e2e/support/setup-test-framework.js --testPathPattern=/test/e2e/specs/", + "test-e2e": "wp-scripts test-e2e --setupTestFrameworkScriptFile=./packages/tests-e2e/support/setup-test-framework.js --testPathPattern=/packages/tests-e2e/specs/", "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/tests-e2e/.npmrc new file mode 100644 index 00000000000000..43c97e719a5a82 --- /dev/null +++ b/packages/tests-e2e/.npmrc @@ -0,0 +1 @@ +package-lock=false diff --git a/packages/tests-e2e/README.md b/packages/tests-e2e/README.md new file mode 100644 index 00000000000000..d2d79debc91bbf --- /dev/null +++ b/packages/tests-e2e/README.md @@ -0,0 +1,13 @@ +# Tests E2E + +End-To-End (E2E) tests for WordPress. + +## Installation + +Install the module + +```bash +npm install @wordpress/tests-e2e --save-dev +``` + +

Code is Poetry.

diff --git a/test/e2e/assets/10x10_e2e_test_image_z9T8jK.png b/packages/tests-e2e/assets/10x10_e2e_test_image_z9T8jK.png similarity index 100% rename from test/e2e/assets/10x10_e2e_test_image_z9T8jK.png rename to packages/tests-e2e/assets/10x10_e2e_test_image_z9T8jK.png diff --git a/test/e2e/assets/greeting-reusable-block.json b/packages/tests-e2e/assets/greeting-reusable-block.json similarity index 100% rename from test/e2e/assets/greeting-reusable-block.json rename to packages/tests-e2e/assets/greeting-reusable-block.json diff --git a/test/e2e/test-mu-plugins/disable-login-autofocus.php b/packages/tests-e2e/mu-plugins/disable-login-autofocus.php similarity index 100% rename from test/e2e/test-mu-plugins/disable-login-autofocus.php rename to packages/tests-e2e/mu-plugins/disable-login-autofocus.php diff --git a/packages/tests-e2e/package.json b/packages/tests-e2e/package.json new file mode 100644 index 00000000000000..b2cbd88c6685f7 --- /dev/null +++ b/packages/tests-e2e/package.json @@ -0,0 +1,36 @@ +{ + "name": "@wordpress/tests-e2e", + "private": true, + "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" + ], + "homepage": "https://github.com/WordPress/gutenberg/tree/master/packages/tests-e2e/README.md", + "repository": { + "type": "git", + "url": "https://github.com/WordPress/gutenberg.git" + }, + "bugs": { + "url": "https://github.com/WordPress/gutenberg/issues" + }, + "dependencies": { + "@wordpress/jest-console": "file:../jest-console", + "@wordpress/keycodes": "file:../keycodes", + "@wordpress/url": "file:../url", + "expect-puppeteer": "^3.2.0", + "lodash": "^4.17.10", + "node-fetch": "^1.7.3" + }, + "peerDependencies": { + "jest": ">=23.0.0", + "puppeteer": ">=1.6.0" + }, + "publishConfig": { + "access": "public" + } +} diff --git a/test/e2e/test-plugins/align-hook.php b/packages/tests-e2e/plugins/align-hook.php similarity index 100% rename from test/e2e/test-plugins/align-hook.php rename to packages/tests-e2e/plugins/align-hook.php diff --git a/test/e2e/test-plugins/align-hook/index.js b/packages/tests-e2e/plugins/align-hook/index.js similarity index 100% rename from test/e2e/test-plugins/align-hook/index.js rename to packages/tests-e2e/plugins/align-hook/index.js diff --git a/test/e2e/test-plugins/block-icons.php b/packages/tests-e2e/plugins/block-icons.php similarity index 100% rename from test/e2e/test-plugins/block-icons.php rename to packages/tests-e2e/plugins/block-icons.php diff --git a/test/e2e/test-plugins/block-icons/index.js b/packages/tests-e2e/plugins/block-icons/index.js similarity index 100% rename from test/e2e/test-plugins/block-icons/index.js rename to packages/tests-e2e/plugins/block-icons/index.js diff --git a/test/e2e/test-plugins/container-without-paragraph.php b/packages/tests-e2e/plugins/container-without-paragraph.php similarity index 100% rename from test/e2e/test-plugins/container-without-paragraph.php rename to packages/tests-e2e/plugins/container-without-paragraph.php diff --git a/test/e2e/test-plugins/container-without-paragraph/index.js b/packages/tests-e2e/plugins/container-without-paragraph/index.js similarity index 100% rename from test/e2e/test-plugins/container-without-paragraph/index.js rename to packages/tests-e2e/plugins/container-without-paragraph/index.js diff --git a/test/e2e/test-plugins/custom-post-types.php b/packages/tests-e2e/plugins/custom-post-types.php similarity index 100% rename from test/e2e/test-plugins/custom-post-types.php rename to packages/tests-e2e/plugins/custom-post-types.php diff --git a/test/e2e/test-plugins/default-post-content.php b/packages/tests-e2e/plugins/default-post-content.php similarity index 100% rename from test/e2e/test-plugins/default-post-content.php rename to packages/tests-e2e/plugins/default-post-content.php diff --git a/test/e2e/test-plugins/deprecated-node-matcher.php b/packages/tests-e2e/plugins/deprecated-node-matcher.php similarity index 100% rename from test/e2e/test-plugins/deprecated-node-matcher.php rename to packages/tests-e2e/plugins/deprecated-node-matcher.php diff --git a/test/e2e/test-plugins/deprecated-node-matcher/index.js b/packages/tests-e2e/plugins/deprecated-node-matcher/index.js similarity index 100% rename from test/e2e/test-plugins/deprecated-node-matcher/index.js rename to packages/tests-e2e/plugins/deprecated-node-matcher/index.js diff --git a/test/e2e/test-plugins/format-api.php b/packages/tests-e2e/plugins/format-api.php similarity index 100% rename from test/e2e/test-plugins/format-api.php rename to packages/tests-e2e/plugins/format-api.php diff --git a/test/e2e/test-plugins/format-api/index.js b/packages/tests-e2e/plugins/format-api/index.js similarity index 100% rename from test/e2e/test-plugins/format-api/index.js rename to packages/tests-e2e/plugins/format-api/index.js diff --git a/test/e2e/test-plugins/hooks-api.php b/packages/tests-e2e/plugins/hooks-api.php similarity index 100% rename from test/e2e/test-plugins/hooks-api.php rename to packages/tests-e2e/plugins/hooks-api.php diff --git a/test/e2e/test-plugins/hooks-api/index.js b/packages/tests-e2e/plugins/hooks-api/index.js similarity index 100% rename from test/e2e/test-plugins/hooks-api/index.js rename to packages/tests-e2e/plugins/hooks-api/index.js diff --git a/test/e2e/test-plugins/inner-blocks-templates.php b/packages/tests-e2e/plugins/inner-blocks-templates.php similarity index 100% rename from test/e2e/test-plugins/inner-blocks-templates.php rename to packages/tests-e2e/plugins/inner-blocks-templates.php diff --git a/test/e2e/test-plugins/inner-blocks-templates/index.js b/packages/tests-e2e/plugins/inner-blocks-templates/index.js similarity index 100% rename from test/e2e/test-plugins/inner-blocks-templates/index.js rename to packages/tests-e2e/plugins/inner-blocks-templates/index.js diff --git a/test/e2e/test-plugins/meta-attribute-block.php b/packages/tests-e2e/plugins/meta-attribute-block.php similarity index 100% rename from test/e2e/test-plugins/meta-attribute-block.php rename to packages/tests-e2e/plugins/meta-attribute-block.php diff --git a/test/e2e/test-plugins/meta-attribute-block/index.js b/packages/tests-e2e/plugins/meta-attribute-block/index.js similarity index 100% rename from test/e2e/test-plugins/meta-attribute-block/index.js rename to packages/tests-e2e/plugins/meta-attribute-block/index.js diff --git a/test/e2e/test-plugins/meta-box.php b/packages/tests-e2e/plugins/meta-box.php similarity index 100% rename from test/e2e/test-plugins/meta-box.php rename to packages/tests-e2e/plugins/meta-box.php diff --git a/test/e2e/test-plugins/plugins-api.php b/packages/tests-e2e/plugins/plugins-api.php similarity index 100% rename from test/e2e/test-plugins/plugins-api.php rename to packages/tests-e2e/plugins/plugins-api.php diff --git a/test/e2e/test-plugins/plugins-api/annotations-sidebar.js b/packages/tests-e2e/plugins/plugins-api/annotations-sidebar.js similarity index 100% rename from test/e2e/test-plugins/plugins-api/annotations-sidebar.js rename to packages/tests-e2e/plugins/plugins-api/annotations-sidebar.js diff --git a/test/e2e/test-plugins/plugins-api/post-status-info.js b/packages/tests-e2e/plugins/plugins-api/post-status-info.js similarity index 100% rename from test/e2e/test-plugins/plugins-api/post-status-info.js rename to packages/tests-e2e/plugins/plugins-api/post-status-info.js diff --git a/test/e2e/test-plugins/plugins-api/publish-panel.js b/packages/tests-e2e/plugins/plugins-api/publish-panel.js similarity index 100% rename from test/e2e/test-plugins/plugins-api/publish-panel.js rename to packages/tests-e2e/plugins/plugins-api/publish-panel.js diff --git a/test/e2e/test-plugins/plugins-api/sidebar.js b/packages/tests-e2e/plugins/plugins-api/sidebar.js similarity index 100% rename from test/e2e/test-plugins/plugins-api/sidebar.js rename to packages/tests-e2e/plugins/plugins-api/sidebar.js diff --git a/test/e2e/test-plugins/post-formats.php b/packages/tests-e2e/plugins/post-formats.php similarity index 100% rename from test/e2e/test-plugins/post-formats.php rename to packages/tests-e2e/plugins/post-formats.php diff --git a/test/e2e/test-plugins/templates.php b/packages/tests-e2e/plugins/templates.php similarity index 100% rename from test/e2e/test-plugins/templates.php rename to packages/tests-e2e/plugins/templates.php diff --git a/test/e2e/test-plugins/wp-editor-metabox.php b/packages/tests-e2e/plugins/wp-editor-metabox.php similarity index 100% rename from test/e2e/test-plugins/wp-editor-metabox.php rename to packages/tests-e2e/plugins/wp-editor-metabox.php diff --git a/test/e2e/specs/__snapshots__/adding-blocks.test.js.snap b/packages/tests-e2e/specs/__snapshots__/adding-blocks.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/adding-blocks.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/adding-blocks.test.js.snap diff --git a/test/e2e/specs/__snapshots__/align-hook.test.js.snap b/packages/tests-e2e/specs/__snapshots__/align-hook.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/align-hook.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/align-hook.test.js.snap diff --git a/test/e2e/specs/__snapshots__/block-deletion.test.js.snap b/packages/tests-e2e/specs/__snapshots__/block-deletion.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/block-deletion.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/block-deletion.test.js.snap diff --git a/test/e2e/specs/__snapshots__/block-hierarchy-navigation.test.js.snap b/packages/tests-e2e/specs/__snapshots__/block-hierarchy-navigation.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/block-hierarchy-navigation.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/block-hierarchy-navigation.test.js.snap diff --git a/test/e2e/specs/__snapshots__/compatibility-classic-editor.test.js.snap b/packages/tests-e2e/specs/__snapshots__/compatibility-classic-editor.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/compatibility-classic-editor.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/compatibility-classic-editor.test.js.snap diff --git a/test/e2e/specs/__snapshots__/container-blocks.test.js.snap b/packages/tests-e2e/specs/__snapshots__/container-blocks.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/container-blocks.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/container-blocks.test.js.snap diff --git a/test/e2e/specs/__snapshots__/convert-block-type.test.js.snap b/packages/tests-e2e/specs/__snapshots__/convert-block-type.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/convert-block-type.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/convert-block-type.test.js.snap diff --git a/test/e2e/specs/__snapshots__/deprecated-node-matcher.test.js.snap b/packages/tests-e2e/specs/__snapshots__/deprecated-node-matcher.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/deprecated-node-matcher.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/deprecated-node-matcher.test.js.snap diff --git a/test/e2e/specs/__snapshots__/embedding.test.js.snap b/packages/tests-e2e/specs/__snapshots__/embedding.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/embedding.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/embedding.test.js.snap diff --git a/test/e2e/specs/__snapshots__/font-size-picker.test.js.snap b/packages/tests-e2e/specs/__snapshots__/font-size-picker.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/font-size-picker.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/font-size-picker.test.js.snap diff --git a/test/e2e/specs/__snapshots__/format-api.test.js.snap b/packages/tests-e2e/specs/__snapshots__/format-api.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/format-api.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/format-api.test.js.snap diff --git a/test/e2e/specs/__snapshots__/links.test.js.snap b/packages/tests-e2e/specs/__snapshots__/links.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/links.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/links.test.js.snap diff --git a/test/e2e/specs/__snapshots__/mentions.test.js.snap b/packages/tests-e2e/specs/__snapshots__/mentions.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/mentions.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/mentions.test.js.snap diff --git a/test/e2e/specs/__snapshots__/meta-attribute-block.test.js.snap b/packages/tests-e2e/specs/__snapshots__/meta-attribute-block.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/meta-attribute-block.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/meta-attribute-block.test.js.snap diff --git a/test/e2e/specs/__snapshots__/plugins-api.test.js.snap b/packages/tests-e2e/specs/__snapshots__/plugins-api.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/plugins-api.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/plugins-api.test.js.snap diff --git a/test/e2e/specs/__snapshots__/reusable-blocks.test.js.snap b/packages/tests-e2e/specs/__snapshots__/reusable-blocks.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/reusable-blocks.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/reusable-blocks.test.js.snap diff --git a/test/e2e/specs/__snapshots__/rich-text.test.js.snap b/packages/tests-e2e/specs/__snapshots__/rich-text.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/rich-text.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/rich-text.test.js.snap diff --git a/test/e2e/specs/__snapshots__/splitting-merging.test.js.snap b/packages/tests-e2e/specs/__snapshots__/splitting-merging.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/splitting-merging.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/splitting-merging.test.js.snap diff --git a/test/e2e/specs/__snapshots__/style-variation.test.js.snap b/packages/tests-e2e/specs/__snapshots__/style-variation.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/style-variation.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/style-variation.test.js.snap diff --git a/test/e2e/specs/__snapshots__/templates.test.js.snap b/packages/tests-e2e/specs/__snapshots__/templates.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/templates.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/templates.test.js.snap diff --git a/test/e2e/specs/__snapshots__/undo.test.js.snap b/packages/tests-e2e/specs/__snapshots__/undo.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/undo.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/undo.test.js.snap diff --git a/test/e2e/specs/__snapshots__/wp-editor-meta-box.test.js.snap b/packages/tests-e2e/specs/__snapshots__/wp-editor-meta-box.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/wp-editor-meta-box.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/wp-editor-meta-box.test.js.snap diff --git a/test/e2e/specs/__snapshots__/writing-flow.test.js.snap b/packages/tests-e2e/specs/__snapshots__/writing-flow.test.js.snap similarity index 100% rename from test/e2e/specs/__snapshots__/writing-flow.test.js.snap rename to packages/tests-e2e/specs/__snapshots__/writing-flow.test.js.snap diff --git a/test/e2e/specs/a11y.test.js b/packages/tests-e2e/specs/a11y.test.js similarity index 100% rename from test/e2e/specs/a11y.test.js rename to packages/tests-e2e/specs/a11y.test.js diff --git a/test/e2e/specs/adding-blocks.test.js b/packages/tests-e2e/specs/adding-blocks.test.js similarity index 100% rename from test/e2e/specs/adding-blocks.test.js rename to packages/tests-e2e/specs/adding-blocks.test.js diff --git a/test/e2e/specs/adding-inline-tokens.test.js b/packages/tests-e2e/specs/adding-inline-tokens.test.js similarity index 100% rename from test/e2e/specs/adding-inline-tokens.test.js rename to packages/tests-e2e/specs/adding-inline-tokens.test.js diff --git a/test/e2e/specs/align-hook.test.js b/packages/tests-e2e/specs/align-hook.test.js similarity index 100% rename from test/e2e/specs/align-hook.test.js rename to packages/tests-e2e/specs/align-hook.test.js diff --git a/test/e2e/specs/annotations.test.js b/packages/tests-e2e/specs/annotations.test.js similarity index 100% rename from test/e2e/specs/annotations.test.js rename to packages/tests-e2e/specs/annotations.test.js diff --git a/test/e2e/specs/block-deletion.test.js b/packages/tests-e2e/specs/block-deletion.test.js similarity index 100% rename from test/e2e/specs/block-deletion.test.js rename to packages/tests-e2e/specs/block-deletion.test.js diff --git a/test/e2e/specs/block-hierarchy-navigation.test.js b/packages/tests-e2e/specs/block-hierarchy-navigation.test.js similarity index 100% rename from test/e2e/specs/block-hierarchy-navigation.test.js rename to packages/tests-e2e/specs/block-hierarchy-navigation.test.js diff --git a/test/e2e/specs/block-icons.test.js b/packages/tests-e2e/specs/block-icons.test.js similarity index 100% rename from test/e2e/specs/block-icons.test.js rename to packages/tests-e2e/specs/block-icons.test.js diff --git a/test/e2e/specs/block-mover.test.js b/packages/tests-e2e/specs/block-mover.test.js similarity index 100% rename from test/e2e/specs/block-mover.test.js rename to packages/tests-e2e/specs/block-mover.test.js diff --git a/test/e2e/specs/block-switcher.test.js b/packages/tests-e2e/specs/block-switcher.test.js similarity index 100% rename from test/e2e/specs/block-switcher.test.js rename to packages/tests-e2e/specs/block-switcher.test.js diff --git a/test/e2e/specs/blocks/__snapshots__/classic.test.js.snap b/packages/tests-e2e/specs/blocks/__snapshots__/classic.test.js.snap similarity index 100% rename from test/e2e/specs/blocks/__snapshots__/classic.test.js.snap rename to packages/tests-e2e/specs/blocks/__snapshots__/classic.test.js.snap diff --git a/test/e2e/specs/blocks/__snapshots__/code.test.js.snap b/packages/tests-e2e/specs/blocks/__snapshots__/code.test.js.snap similarity index 100% rename from test/e2e/specs/blocks/__snapshots__/code.test.js.snap rename to packages/tests-e2e/specs/blocks/__snapshots__/code.test.js.snap diff --git a/test/e2e/specs/blocks/__snapshots__/heading.test.js.snap b/packages/tests-e2e/specs/blocks/__snapshots__/heading.test.js.snap similarity index 100% rename from test/e2e/specs/blocks/__snapshots__/heading.test.js.snap rename to packages/tests-e2e/specs/blocks/__snapshots__/heading.test.js.snap diff --git a/test/e2e/specs/blocks/__snapshots__/html.test.js.snap b/packages/tests-e2e/specs/blocks/__snapshots__/html.test.js.snap similarity index 100% rename from test/e2e/specs/blocks/__snapshots__/html.test.js.snap rename to packages/tests-e2e/specs/blocks/__snapshots__/html.test.js.snap diff --git a/test/e2e/specs/blocks/__snapshots__/list.test.js.snap b/packages/tests-e2e/specs/blocks/__snapshots__/list.test.js.snap similarity index 100% rename from test/e2e/specs/blocks/__snapshots__/list.test.js.snap rename to packages/tests-e2e/specs/blocks/__snapshots__/list.test.js.snap diff --git a/test/e2e/specs/blocks/__snapshots__/quote.test.js.snap b/packages/tests-e2e/specs/blocks/__snapshots__/quote.test.js.snap similarity index 100% rename from test/e2e/specs/blocks/__snapshots__/quote.test.js.snap rename to packages/tests-e2e/specs/blocks/__snapshots__/quote.test.js.snap diff --git a/test/e2e/specs/blocks/__snapshots__/separator.test.js.snap b/packages/tests-e2e/specs/blocks/__snapshots__/separator.test.js.snap similarity index 100% rename from test/e2e/specs/blocks/__snapshots__/separator.test.js.snap rename to packages/tests-e2e/specs/blocks/__snapshots__/separator.test.js.snap diff --git a/test/e2e/specs/blocks/classic.test.js b/packages/tests-e2e/specs/blocks/classic.test.js similarity index 100% rename from test/e2e/specs/blocks/classic.test.js rename to packages/tests-e2e/specs/blocks/classic.test.js diff --git a/test/e2e/specs/blocks/code.test.js b/packages/tests-e2e/specs/blocks/code.test.js similarity index 100% rename from test/e2e/specs/blocks/code.test.js rename to packages/tests-e2e/specs/blocks/code.test.js diff --git a/test/e2e/specs/blocks/heading.test.js b/packages/tests-e2e/specs/blocks/heading.test.js similarity index 100% rename from test/e2e/specs/blocks/heading.test.js rename to packages/tests-e2e/specs/blocks/heading.test.js diff --git a/test/e2e/specs/blocks/html.test.js b/packages/tests-e2e/specs/blocks/html.test.js similarity index 100% rename from test/e2e/specs/blocks/html.test.js rename to packages/tests-e2e/specs/blocks/html.test.js diff --git a/test/e2e/specs/blocks/list.test.js b/packages/tests-e2e/specs/blocks/list.test.js similarity index 100% rename from test/e2e/specs/blocks/list.test.js rename to packages/tests-e2e/specs/blocks/list.test.js diff --git a/test/e2e/specs/blocks/quote.test.js b/packages/tests-e2e/specs/blocks/quote.test.js similarity index 100% rename from test/e2e/specs/blocks/quote.test.js rename to packages/tests-e2e/specs/blocks/quote.test.js diff --git a/test/e2e/specs/blocks/separator.test.js b/packages/tests-e2e/specs/blocks/separator.test.js similarity index 100% rename from test/e2e/specs/blocks/separator.test.js rename to packages/tests-e2e/specs/blocks/separator.test.js diff --git a/test/e2e/specs/change-detection.test.js b/packages/tests-e2e/specs/change-detection.test.js similarity index 100% rename from test/e2e/specs/change-detection.test.js rename to packages/tests-e2e/specs/change-detection.test.js diff --git a/test/e2e/specs/compatibility-classic-editor.test.js b/packages/tests-e2e/specs/compatibility-classic-editor.test.js similarity index 100% rename from test/e2e/specs/compatibility-classic-editor.test.js rename to packages/tests-e2e/specs/compatibility-classic-editor.test.js diff --git a/test/e2e/specs/container-blocks.test.js b/packages/tests-e2e/specs/container-blocks.test.js similarity index 100% rename from test/e2e/specs/container-blocks.test.js rename to packages/tests-e2e/specs/container-blocks.test.js diff --git a/test/e2e/specs/convert-block-type.test.js b/packages/tests-e2e/specs/convert-block-type.test.js similarity index 100% rename from test/e2e/specs/convert-block-type.test.js rename to packages/tests-e2e/specs/convert-block-type.test.js diff --git a/test/e2e/specs/datepicker.test.js b/packages/tests-e2e/specs/datepicker.test.js similarity index 100% rename from test/e2e/specs/datepicker.test.js rename to packages/tests-e2e/specs/datepicker.test.js diff --git a/test/e2e/specs/demo.test.js b/packages/tests-e2e/specs/demo.test.js similarity index 100% rename from test/e2e/specs/demo.test.js rename to packages/tests-e2e/specs/demo.test.js diff --git a/test/e2e/specs/deprecated-node-matcher.test.js b/packages/tests-e2e/specs/deprecated-node-matcher.test.js similarity index 100% rename from test/e2e/specs/deprecated-node-matcher.test.js rename to packages/tests-e2e/specs/deprecated-node-matcher.test.js diff --git a/test/e2e/specs/editor-modes.test.js b/packages/tests-e2e/specs/editor-modes.test.js similarity index 100% rename from test/e2e/specs/editor-modes.test.js rename to packages/tests-e2e/specs/editor-modes.test.js diff --git a/test/e2e/specs/embedding.test.js b/packages/tests-e2e/specs/embedding.test.js similarity index 100% rename from test/e2e/specs/embedding.test.js rename to packages/tests-e2e/specs/embedding.test.js diff --git a/test/e2e/specs/font-size-picker.test.js b/packages/tests-e2e/specs/font-size-picker.test.js similarity index 100% rename from test/e2e/specs/font-size-picker.test.js rename to packages/tests-e2e/specs/font-size-picker.test.js diff --git a/test/e2e/specs/format-api.test.js b/packages/tests-e2e/specs/format-api.test.js similarity index 100% rename from test/e2e/specs/format-api.test.js rename to packages/tests-e2e/specs/format-api.test.js diff --git a/test/e2e/specs/fullscreen-mode.test.js b/packages/tests-e2e/specs/fullscreen-mode.test.js similarity index 100% rename from test/e2e/specs/fullscreen-mode.test.js rename to packages/tests-e2e/specs/fullscreen-mode.test.js diff --git a/test/e2e/specs/hooks-api.test.js b/packages/tests-e2e/specs/hooks-api.test.js similarity index 100% rename from test/e2e/specs/hooks-api.test.js rename to packages/tests-e2e/specs/hooks-api.test.js diff --git a/test/e2e/specs/invalid-block.test.js b/packages/tests-e2e/specs/invalid-block.test.js similarity index 100% rename from test/e2e/specs/invalid-block.test.js rename to packages/tests-e2e/specs/invalid-block.test.js diff --git a/test/e2e/specs/links.test.js b/packages/tests-e2e/specs/links.test.js similarity index 100% rename from test/e2e/specs/links.test.js rename to packages/tests-e2e/specs/links.test.js diff --git a/test/e2e/specs/manage-reusable-blocks.test.js b/packages/tests-e2e/specs/manage-reusable-blocks.test.js similarity index 100% rename from test/e2e/specs/manage-reusable-blocks.test.js rename to packages/tests-e2e/specs/manage-reusable-blocks.test.js diff --git a/test/e2e/specs/mentions.test.js b/packages/tests-e2e/specs/mentions.test.js similarity index 100% rename from test/e2e/specs/mentions.test.js rename to packages/tests-e2e/specs/mentions.test.js diff --git a/test/e2e/specs/meta-attribute-block.test.js b/packages/tests-e2e/specs/meta-attribute-block.test.js similarity index 100% rename from test/e2e/specs/meta-attribute-block.test.js rename to packages/tests-e2e/specs/meta-attribute-block.test.js diff --git a/test/e2e/specs/meta-boxes.test.js b/packages/tests-e2e/specs/meta-boxes.test.js similarity index 100% rename from test/e2e/specs/meta-boxes.test.js rename to packages/tests-e2e/specs/meta-boxes.test.js diff --git a/test/e2e/specs/multi-block-selection.test.js b/packages/tests-e2e/specs/multi-block-selection.test.js similarity index 100% rename from test/e2e/specs/multi-block-selection.test.js rename to packages/tests-e2e/specs/multi-block-selection.test.js diff --git a/test/e2e/specs/navigable-toolbar.test.js b/packages/tests-e2e/specs/navigable-toolbar.test.js similarity index 100% rename from test/e2e/specs/navigable-toolbar.test.js rename to packages/tests-e2e/specs/navigable-toolbar.test.js diff --git a/test/e2e/specs/new-post-default-content.test.js b/packages/tests-e2e/specs/new-post-default-content.test.js similarity index 100% rename from test/e2e/specs/new-post-default-content.test.js rename to packages/tests-e2e/specs/new-post-default-content.test.js diff --git a/test/e2e/specs/new-post.test.js b/packages/tests-e2e/specs/new-post.test.js similarity index 100% rename from test/e2e/specs/new-post.test.js rename to packages/tests-e2e/specs/new-post.test.js diff --git a/test/e2e/specs/nux.test.js b/packages/tests-e2e/specs/nux.test.js similarity index 100% rename from test/e2e/specs/nux.test.js rename to packages/tests-e2e/specs/nux.test.js diff --git a/test/e2e/specs/plugins-api.test.js b/packages/tests-e2e/specs/plugins-api.test.js similarity index 100% rename from test/e2e/specs/plugins-api.test.js rename to packages/tests-e2e/specs/plugins-api.test.js diff --git a/test/e2e/specs/popovers.test.js b/packages/tests-e2e/specs/popovers.test.js similarity index 100% rename from test/e2e/specs/popovers.test.js rename to packages/tests-e2e/specs/popovers.test.js diff --git a/test/e2e/specs/post-visibility.test.js b/packages/tests-e2e/specs/post-visibility.test.js similarity index 100% rename from test/e2e/specs/post-visibility.test.js rename to packages/tests-e2e/specs/post-visibility.test.js diff --git a/test/e2e/specs/preferences.test.js b/packages/tests-e2e/specs/preferences.test.js similarity index 100% rename from test/e2e/specs/preferences.test.js rename to packages/tests-e2e/specs/preferences.test.js diff --git a/test/e2e/specs/preview.test.js b/packages/tests-e2e/specs/preview.test.js similarity index 100% rename from test/e2e/specs/preview.test.js rename to packages/tests-e2e/specs/preview.test.js diff --git a/test/e2e/specs/publish-button.test.js b/packages/tests-e2e/specs/publish-button.test.js similarity index 100% rename from test/e2e/specs/publish-button.test.js rename to packages/tests-e2e/specs/publish-button.test.js diff --git a/test/e2e/specs/publish-panel.test.js b/packages/tests-e2e/specs/publish-panel.test.js similarity index 100% rename from test/e2e/specs/publish-panel.test.js rename to packages/tests-e2e/specs/publish-panel.test.js diff --git a/test/e2e/specs/publishing.test.js b/packages/tests-e2e/specs/publishing.test.js similarity index 100% rename from test/e2e/specs/publishing.test.js rename to packages/tests-e2e/specs/publishing.test.js diff --git a/test/e2e/specs/reusable-blocks.test.js b/packages/tests-e2e/specs/reusable-blocks.test.js similarity index 100% rename from test/e2e/specs/reusable-blocks.test.js rename to packages/tests-e2e/specs/reusable-blocks.test.js diff --git a/test/e2e/specs/rich-text.test.js b/packages/tests-e2e/specs/rich-text.test.js similarity index 100% rename from test/e2e/specs/rich-text.test.js rename to packages/tests-e2e/specs/rich-text.test.js diff --git a/test/e2e/specs/shortcut-help.test.js b/packages/tests-e2e/specs/shortcut-help.test.js similarity index 100% rename from test/e2e/specs/shortcut-help.test.js rename to packages/tests-e2e/specs/shortcut-help.test.js diff --git a/test/e2e/specs/sidebar-permalink-panel.test.js b/packages/tests-e2e/specs/sidebar-permalink-panel.test.js similarity index 100% rename from test/e2e/specs/sidebar-permalink-panel.test.js rename to packages/tests-e2e/specs/sidebar-permalink-panel.test.js diff --git a/test/e2e/specs/sidebar.test.js b/packages/tests-e2e/specs/sidebar.test.js similarity index 100% rename from test/e2e/specs/sidebar.test.js rename to packages/tests-e2e/specs/sidebar.test.js diff --git a/test/e2e/specs/splitting-merging.test.js b/packages/tests-e2e/specs/splitting-merging.test.js similarity index 100% rename from test/e2e/specs/splitting-merging.test.js rename to packages/tests-e2e/specs/splitting-merging.test.js diff --git a/test/e2e/specs/style-variation.test.js b/packages/tests-e2e/specs/style-variation.test.js similarity index 100% rename from test/e2e/specs/style-variation.test.js rename to packages/tests-e2e/specs/style-variation.test.js diff --git a/test/e2e/specs/taxonomies.test.js b/packages/tests-e2e/specs/taxonomies.test.js similarity index 100% rename from test/e2e/specs/taxonomies.test.js rename to packages/tests-e2e/specs/taxonomies.test.js diff --git a/test/e2e/specs/templates.test.js b/packages/tests-e2e/specs/templates.test.js similarity index 100% rename from test/e2e/specs/templates.test.js rename to packages/tests-e2e/specs/templates.test.js diff --git a/test/e2e/specs/undo.test.js b/packages/tests-e2e/specs/undo.test.js similarity index 100% rename from test/e2e/specs/undo.test.js rename to packages/tests-e2e/specs/undo.test.js diff --git a/test/e2e/specs/wp-editor-meta-box.test.js b/packages/tests-e2e/specs/wp-editor-meta-box.test.js similarity index 100% rename from test/e2e/specs/wp-editor-meta-box.test.js rename to packages/tests-e2e/specs/wp-editor-meta-box.test.js diff --git a/test/e2e/specs/writing-flow.test.js b/packages/tests-e2e/specs/writing-flow.test.js similarity index 100% rename from test/e2e/specs/writing-flow.test.js rename to packages/tests-e2e/specs/writing-flow.test.js diff --git a/test/e2e/support/setup-test-framework.js b/packages/tests-e2e/support/setup-test-framework.js similarity index 100% rename from test/e2e/support/setup-test-framework.js rename to packages/tests-e2e/support/setup-test-framework.js diff --git a/test/e2e/support/utils/activate-plugin.js b/packages/tests-e2e/support/utils/activate-plugin.js similarity index 95% rename from test/e2e/support/utils/activate-plugin.js rename to packages/tests-e2e/support/utils/activate-plugin.js index c99b70b92376dd..ce52f380f266b8 100644 --- a/test/e2e/support/utils/activate-plugin.js +++ b/packages/tests-e2e/support/utils/activate-plugin.js @@ -1,5 +1,5 @@ /** - * Node dependencies + * Internal dependencies */ import { switchUserToAdmin } from './switch-user-to-admin'; import { switchUserToTest } from './switch-user-to-test'; diff --git a/test/e2e/support/utils/are-pre-publish-checks-enabled.js b/packages/tests-e2e/support/utils/are-pre-publish-checks-enabled.js similarity index 100% rename from test/e2e/support/utils/are-pre-publish-checks-enabled.js rename to packages/tests-e2e/support/utils/are-pre-publish-checks-enabled.js diff --git a/test/e2e/support/utils/clear-local-storage.js b/packages/tests-e2e/support/utils/clear-local-storage.js similarity index 100% rename from test/e2e/support/utils/clear-local-storage.js rename to packages/tests-e2e/support/utils/clear-local-storage.js diff --git a/test/e2e/support/utils/click-block-appender.js b/packages/tests-e2e/support/utils/click-block-appender.js similarity index 100% rename from test/e2e/support/utils/click-block-appender.js rename to packages/tests-e2e/support/utils/click-block-appender.js diff --git a/test/e2e/support/utils/click-button.js b/packages/tests-e2e/support/utils/click-button.js similarity index 100% rename from test/e2e/support/utils/click-button.js rename to packages/tests-e2e/support/utils/click-button.js diff --git a/test/e2e/support/utils/click-on-close-modal-button.js b/packages/tests-e2e/support/utils/click-on-close-modal-button.js similarity index 100% rename from test/e2e/support/utils/click-on-close-modal-button.js rename to packages/tests-e2e/support/utils/click-on-close-modal-button.js diff --git a/test/e2e/support/utils/click-on-more-menu-item.js b/packages/tests-e2e/support/utils/click-on-more-menu-item.js similarity index 100% rename from test/e2e/support/utils/click-on-more-menu-item.js rename to packages/tests-e2e/support/utils/click-on-more-menu-item.js diff --git a/test/e2e/support/utils/create-new-post.js b/packages/tests-e2e/support/utils/create-new-post.js similarity index 100% rename from test/e2e/support/utils/create-new-post.js rename to packages/tests-e2e/support/utils/create-new-post.js diff --git a/test/e2e/support/utils/create-url.js b/packages/tests-e2e/support/utils/create-url.js similarity index 100% rename from test/e2e/support/utils/create-url.js rename to packages/tests-e2e/support/utils/create-url.js diff --git a/test/e2e/support/utils/deactivate-plugin.js b/packages/tests-e2e/support/utils/deactivate-plugin.js similarity index 95% rename from test/e2e/support/utils/deactivate-plugin.js rename to packages/tests-e2e/support/utils/deactivate-plugin.js index 43120f20d40341..bfaaf7e0a7eeba 100644 --- a/test/e2e/support/utils/deactivate-plugin.js +++ b/packages/tests-e2e/support/utils/deactivate-plugin.js @@ -1,5 +1,5 @@ /** - * Node dependencies + * Internal dependencies */ import { switchUserToAdmin } from './switch-user-to-admin'; import { switchUserToTest } from './switch-user-to-test'; diff --git a/test/e2e/support/utils/disable-pre-publish-checks.js b/packages/tests-e2e/support/utils/disable-pre-publish-checks.js similarity index 100% rename from test/e2e/support/utils/disable-pre-publish-checks.js rename to packages/tests-e2e/support/utils/disable-pre-publish-checks.js diff --git a/test/e2e/support/utils/enable-page-dialog-accept.js b/packages/tests-e2e/support/utils/enable-page-dialog-accept.js similarity index 100% rename from test/e2e/support/utils/enable-page-dialog-accept.js rename to packages/tests-e2e/support/utils/enable-page-dialog-accept.js diff --git a/test/e2e/support/utils/enable-pre-publish-checks.js b/packages/tests-e2e/support/utils/enable-pre-publish-checks.js similarity index 100% rename from test/e2e/support/utils/enable-pre-publish-checks.js rename to packages/tests-e2e/support/utils/enable-pre-publish-checks.js diff --git a/test/e2e/support/utils/ensure-sidebar-opened.js b/packages/tests-e2e/support/utils/ensure-sidebar-opened.js similarity index 100% rename from test/e2e/support/utils/ensure-sidebar-opened.js rename to packages/tests-e2e/support/utils/ensure-sidebar-opened.js diff --git a/test/e2e/support/utils/find-sidebar-panel-with-title.js b/packages/tests-e2e/support/utils/find-sidebar-panel-with-title.js similarity index 100% rename from test/e2e/support/utils/find-sidebar-panel-with-title.js rename to packages/tests-e2e/support/utils/find-sidebar-panel-with-title.js diff --git a/test/e2e/support/utils/get-all-blocks.js b/packages/tests-e2e/support/utils/get-all-blocks.js similarity index 100% rename from test/e2e/support/utils/get-all-blocks.js rename to packages/tests-e2e/support/utils/get-all-blocks.js diff --git a/test/e2e/support/utils/get-available-block-transforms.js b/packages/tests-e2e/support/utils/get-available-block-transforms.js similarity index 100% rename from test/e2e/support/utils/get-available-block-transforms.js rename to packages/tests-e2e/support/utils/get-available-block-transforms.js diff --git a/test/e2e/support/utils/get-edited-post-content.js b/packages/tests-e2e/support/utils/get-edited-post-content.js similarity index 100% rename from test/e2e/support/utils/get-edited-post-content.js rename to packages/tests-e2e/support/utils/get-edited-post-content.js diff --git a/test/e2e/support/utils/has-block-switcher.js b/packages/tests-e2e/support/utils/has-block-switcher.js similarity index 100% rename from test/e2e/support/utils/has-block-switcher.js rename to packages/tests-e2e/support/utils/has-block-switcher.js diff --git a/test/e2e/support/utils/index.js b/packages/tests-e2e/support/utils/index.js similarity index 100% rename from test/e2e/support/utils/index.js rename to packages/tests-e2e/support/utils/index.js diff --git a/test/e2e/support/utils/insert-block.js b/packages/tests-e2e/support/utils/insert-block.js similarity index 100% rename from test/e2e/support/utils/insert-block.js rename to packages/tests-e2e/support/utils/insert-block.js diff --git a/test/e2e/support/utils/install-plugin.js b/packages/tests-e2e/support/utils/install-plugin.js similarity index 96% rename from test/e2e/support/utils/install-plugin.js rename to packages/tests-e2e/support/utils/install-plugin.js index d83885c619e8a6..37a47ae382a246 100644 --- a/test/e2e/support/utils/install-plugin.js +++ b/packages/tests-e2e/support/utils/install-plugin.js @@ -1,5 +1,5 @@ /** - * Node dependencies + * Internal dependencies */ import { switchUserToAdmin } from './switch-user-to-admin'; import { switchUserToTest } from './switch-user-to-test'; diff --git a/test/e2e/support/utils/is-current-url.js b/packages/tests-e2e/support/utils/is-current-url.js similarity index 100% rename from test/e2e/support/utils/is-current-url.js rename to packages/tests-e2e/support/utils/is-current-url.js diff --git a/test/e2e/support/utils/login-user.js b/packages/tests-e2e/support/utils/login-user.js similarity index 100% rename from test/e2e/support/utils/login-user.js rename to packages/tests-e2e/support/utils/login-user.js diff --git a/test/e2e/support/utils/mocks/create-embedding-matcher.js b/packages/tests-e2e/support/utils/mocks/create-embedding-matcher.js similarity index 100% rename from test/e2e/support/utils/mocks/create-embedding-matcher.js rename to packages/tests-e2e/support/utils/mocks/create-embedding-matcher.js diff --git a/test/e2e/support/utils/mocks/create-json-response.js b/packages/tests-e2e/support/utils/mocks/create-json-response.js similarity index 100% rename from test/e2e/support/utils/mocks/create-json-response.js rename to packages/tests-e2e/support/utils/mocks/create-json-response.js diff --git a/test/e2e/support/utils/mocks/create-url-matcher.js b/packages/tests-e2e/support/utils/mocks/create-url-matcher.js similarity index 100% rename from test/e2e/support/utils/mocks/create-url-matcher.js rename to packages/tests-e2e/support/utils/mocks/create-url-matcher.js diff --git a/test/e2e/support/utils/mocks/index.js b/packages/tests-e2e/support/utils/mocks/index.js similarity index 100% rename from test/e2e/support/utils/mocks/index.js rename to packages/tests-e2e/support/utils/mocks/index.js diff --git a/test/e2e/support/utils/mocks/mock-or-transform.js b/packages/tests-e2e/support/utils/mocks/mock-or-transform.js similarity index 100% rename from test/e2e/support/utils/mocks/mock-or-transform.js rename to packages/tests-e2e/support/utils/mocks/mock-or-transform.js diff --git a/test/e2e/support/utils/mocks/set-up-response-mocking.js b/packages/tests-e2e/support/utils/mocks/set-up-response-mocking.js similarity index 100% rename from test/e2e/support/utils/mocks/set-up-response-mocking.js rename to packages/tests-e2e/support/utils/mocks/set-up-response-mocking.js diff --git a/test/e2e/support/utils/observe-focus-loss.js b/packages/tests-e2e/support/utils/observe-focus-loss.js similarity index 100% rename from test/e2e/support/utils/observe-focus-loss.js rename to packages/tests-e2e/support/utils/observe-focus-loss.js diff --git a/test/e2e/support/utils/open-document-settings-sidebar.js b/packages/tests-e2e/support/utils/open-document-settings-sidebar.js similarity index 100% rename from test/e2e/support/utils/open-document-settings-sidebar.js rename to packages/tests-e2e/support/utils/open-document-settings-sidebar.js diff --git a/test/e2e/support/utils/open-publish-panel.js b/packages/tests-e2e/support/utils/open-publish-panel.js similarity index 100% rename from test/e2e/support/utils/open-publish-panel.js rename to packages/tests-e2e/support/utils/open-publish-panel.js diff --git a/test/e2e/support/utils/press-key-times.js b/packages/tests-e2e/support/utils/press-key-times.js similarity index 100% rename from test/e2e/support/utils/press-key-times.js rename to packages/tests-e2e/support/utils/press-key-times.js diff --git a/test/e2e/support/utils/press-key-with-modifier.js b/packages/tests-e2e/support/utils/press-key-with-modifier.js similarity index 100% rename from test/e2e/support/utils/press-key-with-modifier.js rename to packages/tests-e2e/support/utils/press-key-with-modifier.js diff --git a/test/e2e/support/utils/publish-post-with-pre-publish-checks-disabled.js b/packages/tests-e2e/support/utils/publish-post-with-pre-publish-checks-disabled.js similarity index 100% rename from test/e2e/support/utils/publish-post-with-pre-publish-checks-disabled.js rename to packages/tests-e2e/support/utils/publish-post-with-pre-publish-checks-disabled.js diff --git a/test/e2e/support/utils/publish-post.js b/packages/tests-e2e/support/utils/publish-post.js similarity index 100% rename from test/e2e/support/utils/publish-post.js rename to packages/tests-e2e/support/utils/publish-post.js diff --git a/test/e2e/support/utils/save-draft.js b/packages/tests-e2e/support/utils/save-draft.js similarity index 100% rename from test/e2e/support/utils/save-draft.js rename to packages/tests-e2e/support/utils/save-draft.js diff --git a/test/e2e/support/utils/search-for-block.js b/packages/tests-e2e/support/utils/search-for-block.js similarity index 100% rename from test/e2e/support/utils/search-for-block.js rename to packages/tests-e2e/support/utils/search-for-block.js diff --git a/test/e2e/support/utils/select-block-by-client-id.js b/packages/tests-e2e/support/utils/select-block-by-client-id.js similarity index 100% rename from test/e2e/support/utils/select-block-by-client-id.js rename to packages/tests-e2e/support/utils/select-block-by-client-id.js diff --git a/test/e2e/support/utils/set-browser-viewport.js b/packages/tests-e2e/support/utils/set-browser-viewport.js similarity index 100% rename from test/e2e/support/utils/set-browser-viewport.js rename to packages/tests-e2e/support/utils/set-browser-viewport.js diff --git a/test/e2e/support/utils/set-post-content.js b/packages/tests-e2e/support/utils/set-post-content.js similarity index 100% rename from test/e2e/support/utils/set-post-content.js rename to packages/tests-e2e/support/utils/set-post-content.js diff --git a/test/e2e/support/utils/shared/config.js b/packages/tests-e2e/support/utils/shared/config.js similarity index 100% rename from test/e2e/support/utils/shared/config.js rename to packages/tests-e2e/support/utils/shared/config.js diff --git a/test/e2e/support/utils/shared/get-json-response.js b/packages/tests-e2e/support/utils/shared/get-json-response.js similarity index 100% rename from test/e2e/support/utils/shared/get-json-response.js rename to packages/tests-e2e/support/utils/shared/get-json-response.js diff --git a/test/e2e/support/utils/switch-editor-mode-to.js b/packages/tests-e2e/support/utils/switch-editor-mode-to.js similarity index 86% rename from test/e2e/support/utils/switch-editor-mode-to.js rename to packages/tests-e2e/support/utils/switch-editor-mode-to.js index 64d08364eb430e..6978b2ee812472 100644 --- a/test/e2e/support/utils/switch-editor-mode-to.js +++ b/packages/tests-e2e/support/utils/switch-editor-mode-to.js @@ -1,6 +1,7 @@ /** * Switches editor mode. -* @param {string} mode String editor mode. + * + * @param {string} mode String editor mode. */ export async function switchEditorModeTo( mode ) { await page.click( diff --git a/test/e2e/support/utils/switch-user-to-admin.js b/packages/tests-e2e/support/utils/switch-user-to-admin.js similarity index 100% rename from test/e2e/support/utils/switch-user-to-admin.js rename to packages/tests-e2e/support/utils/switch-user-to-admin.js diff --git a/test/e2e/support/utils/switch-user-to-test.js b/packages/tests-e2e/support/utils/switch-user-to-test.js similarity index 100% rename from test/e2e/support/utils/switch-user-to-test.js rename to packages/tests-e2e/support/utils/switch-user-to-test.js diff --git a/test/e2e/support/utils/toggle-screen-option.js b/packages/tests-e2e/support/utils/toggle-screen-option.js similarity index 100% rename from test/e2e/support/utils/toggle-screen-option.js rename to packages/tests-e2e/support/utils/toggle-screen-option.js diff --git a/test/e2e/support/utils/transform-block-to.js b/packages/tests-e2e/support/utils/transform-block-to.js similarity index 100% rename from test/e2e/support/utils/transform-block-to.js rename to packages/tests-e2e/support/utils/transform-block-to.js diff --git a/test/e2e/support/utils/uninstall-plugin.js b/packages/tests-e2e/support/utils/uninstall-plugin.js similarity index 96% rename from test/e2e/support/utils/uninstall-plugin.js rename to packages/tests-e2e/support/utils/uninstall-plugin.js index aca1b35652c017..bde3828a210404 100644 --- a/test/e2e/support/utils/uninstall-plugin.js +++ b/packages/tests-e2e/support/utils/uninstall-plugin.js @@ -1,5 +1,5 @@ /** - * Node dependencies + * Internal dependencies */ import { switchUserToAdmin } from './switch-user-to-admin'; import { switchUserToTest } from './switch-user-to-test'; diff --git a/test/e2e/support/utils/visit-admin-page.js b/packages/tests-e2e/support/utils/visit-admin-page.js similarity index 100% rename from test/e2e/support/utils/visit-admin-page.js rename to packages/tests-e2e/support/utils/visit-admin-page.js diff --git a/test/e2e/support/utils/wait-for-window-dimensions.js b/packages/tests-e2e/support/utils/wait-for-window-dimensions.js similarity index 100% rename from test/e2e/support/utils/wait-for-window-dimensions.js rename to packages/tests-e2e/support/utils/wait-for-window-dimensions.js diff --git a/test/unit/jest.config.json b/test/unit/jest.config.json index ccd22b33408f36..90efca58905337 100644 --- a/test/unit/jest.config.json +++ b/test/unit/jest.config.json @@ -11,7 +11,7 @@ "testURL": "http://localhost", "testPathIgnorePatterns": [ "/node_modules/", - "/test/e2e", + "/packages/tests-e2e", "/.*/build/", "/.*/build-module/" ],