├── .env ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github ├── CODEOWNERS ├── release-pull-request-template.md └── workflows │ ├── codeql-analysis.yml │ ├── cypress.yml │ ├── docs.yml │ ├── publish.yml │ ├── release-pull-request.yml │ └── update-built-branch.yml ├── .gitignore ├── .husky ├── .gitignore ├── pre-commit └── prepare-commit-msg ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── .vscode └── settings.json ├── .wp-env.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── CREDITS.md ├── LICENSE.md ├── README.md ├── _templates ├── cypress-command │ └── new │ │ ├── command.ejs.t │ │ ├── import.ejs.t │ │ ├── register.ejs.t │ │ ├── test.ejs.t │ │ └── type.ejs.t └── generator │ ├── help │ └── index.ejs.t │ ├── new │ └── hello.ejs.t │ └── with-prompt │ ├── hello.ejs.t │ └── prompt.ejs.t ├── cypress-wp-utils.php ├── package.json ├── run-all-cores.sh ├── src ├── commands │ ├── activate-all-plugins.ts │ ├── activate-plugin.ts │ ├── check-block-pattern-exists.ts │ ├── check-post-exists.ts │ ├── check-sitemap-exists.ts │ ├── classic-create-post.ts │ ├── close-welcome-guide.ts │ ├── create-post.ts │ ├── create-term.ts │ ├── deactivate-all-plugins.ts │ ├── deactivate-plugin.ts │ ├── delete-all-terms.ts │ ├── get-block-editor.ts │ ├── insert-block.ts │ ├── login.ts │ ├── logout.ts │ ├── open-document-settings-panel.ts │ ├── open-document-settings-sidebar.ts │ ├── set-permalink-structure.ts │ ├── upload-media.ts │ ├── wp-cli-eval.ts │ └── wp-cli.ts ├── functions │ ├── capitalize.ts │ ├── get-iframe.ts │ └── uc-first.ts ├── index.ts └── interface │ └── post-data.ts ├── tests ├── bin │ ├── initialize.sh │ ├── set-core-version.js │ └── wp-cli.yml └── cypress │ ├── cypress-config.js │ ├── e2e │ ├── check-post-exists.test.js │ ├── check-sitemap-exists.test.js │ ├── classic-create-post.test.js │ ├── close-welcome-guide.test.js │ ├── create-post.test.js │ ├── create-term.test.js │ ├── delete-all-terms.test.js │ ├── insert-block.test.js │ ├── login.test.js │ ├── logout.test.js │ ├── open-document-settings.test.js │ ├── plugins.test.js │ ├── set-permalink-structure.test.js │ ├── upload-media.test.js │ ├── wp-cli.test.js │ └── z.check-block-pattern-exists.test.js │ ├── fixtures │ ├── 10up.png │ └── example.json │ ├── support │ ├── e2e.js │ └── functions.js │ └── tsconfig.json └── tsconfig.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.env -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | src/types/global.d.ts -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/release-pull-request-template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.github/release-pull-request-template.md -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/cypress.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.github/workflows/cypress.yml -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.github/workflows/docs.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/release-pull-request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.github/workflows/release-pull-request.yml -------------------------------------------------------------------------------- /.github/workflows/update-built-branch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.github/workflows/update-built-branch.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.husky/prepare-commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.husky/prepare-commit-msg -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v18 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.wp-env.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/.wp-env.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /CREDITS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/CREDITS.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/README.md -------------------------------------------------------------------------------- /_templates/cypress-command/new/command.ejs.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/_templates/cypress-command/new/command.ejs.t -------------------------------------------------------------------------------- /_templates/cypress-command/new/import.ejs.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/_templates/cypress-command/new/import.ejs.t -------------------------------------------------------------------------------- /_templates/cypress-command/new/register.ejs.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/_templates/cypress-command/new/register.ejs.t -------------------------------------------------------------------------------- /_templates/cypress-command/new/test.ejs.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/_templates/cypress-command/new/test.ejs.t -------------------------------------------------------------------------------- /_templates/cypress-command/new/type.ejs.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/_templates/cypress-command/new/type.ejs.t -------------------------------------------------------------------------------- /_templates/generator/help/index.ejs.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/_templates/generator/help/index.ejs.t -------------------------------------------------------------------------------- /_templates/generator/new/hello.ejs.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/_templates/generator/new/hello.ejs.t -------------------------------------------------------------------------------- /_templates/generator/with-prompt/hello.ejs.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/_templates/generator/with-prompt/hello.ejs.t -------------------------------------------------------------------------------- /_templates/generator/with-prompt/prompt.ejs.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/_templates/generator/with-prompt/prompt.ejs.t -------------------------------------------------------------------------------- /cypress-wp-utils.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/cypress-wp-utils.php -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/package.json -------------------------------------------------------------------------------- /run-all-cores.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/run-all-cores.sh -------------------------------------------------------------------------------- /src/commands/activate-all-plugins.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/activate-all-plugins.ts -------------------------------------------------------------------------------- /src/commands/activate-plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/activate-plugin.ts -------------------------------------------------------------------------------- /src/commands/check-block-pattern-exists.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/check-block-pattern-exists.ts -------------------------------------------------------------------------------- /src/commands/check-post-exists.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/check-post-exists.ts -------------------------------------------------------------------------------- /src/commands/check-sitemap-exists.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/check-sitemap-exists.ts -------------------------------------------------------------------------------- /src/commands/classic-create-post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/classic-create-post.ts -------------------------------------------------------------------------------- /src/commands/close-welcome-guide.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/close-welcome-guide.ts -------------------------------------------------------------------------------- /src/commands/create-post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/create-post.ts -------------------------------------------------------------------------------- /src/commands/create-term.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/create-term.ts -------------------------------------------------------------------------------- /src/commands/deactivate-all-plugins.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/deactivate-all-plugins.ts -------------------------------------------------------------------------------- /src/commands/deactivate-plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/deactivate-plugin.ts -------------------------------------------------------------------------------- /src/commands/delete-all-terms.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/delete-all-terms.ts -------------------------------------------------------------------------------- /src/commands/get-block-editor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/get-block-editor.ts -------------------------------------------------------------------------------- /src/commands/insert-block.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/insert-block.ts -------------------------------------------------------------------------------- /src/commands/login.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/login.ts -------------------------------------------------------------------------------- /src/commands/logout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/logout.ts -------------------------------------------------------------------------------- /src/commands/open-document-settings-panel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/open-document-settings-panel.ts -------------------------------------------------------------------------------- /src/commands/open-document-settings-sidebar.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/open-document-settings-sidebar.ts -------------------------------------------------------------------------------- /src/commands/set-permalink-structure.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/set-permalink-structure.ts -------------------------------------------------------------------------------- /src/commands/upload-media.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/upload-media.ts -------------------------------------------------------------------------------- /src/commands/wp-cli-eval.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/wp-cli-eval.ts -------------------------------------------------------------------------------- /src/commands/wp-cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/commands/wp-cli.ts -------------------------------------------------------------------------------- /src/functions/capitalize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/functions/capitalize.ts -------------------------------------------------------------------------------- /src/functions/get-iframe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/functions/get-iframe.ts -------------------------------------------------------------------------------- /src/functions/uc-first.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/functions/uc-first.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interface/post-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/src/interface/post-data.ts -------------------------------------------------------------------------------- /tests/bin/initialize.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/bin/initialize.sh -------------------------------------------------------------------------------- /tests/bin/set-core-version.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/bin/set-core-version.js -------------------------------------------------------------------------------- /tests/bin/wp-cli.yml: -------------------------------------------------------------------------------- 1 | apache_modules: 2 | - mod_rewrite 3 | -------------------------------------------------------------------------------- /tests/cypress/cypress-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/cypress-config.js -------------------------------------------------------------------------------- /tests/cypress/e2e/check-post-exists.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/check-post-exists.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/check-sitemap-exists.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/check-sitemap-exists.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/classic-create-post.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/classic-create-post.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/close-welcome-guide.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/close-welcome-guide.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/create-post.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/create-post.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/create-term.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/create-term.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/delete-all-terms.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/delete-all-terms.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/insert-block.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/insert-block.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/login.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/login.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/logout.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/logout.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/open-document-settings.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/open-document-settings.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/plugins.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/plugins.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/set-permalink-structure.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/set-permalink-structure.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/upload-media.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/upload-media.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/wp-cli.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/wp-cli.test.js -------------------------------------------------------------------------------- /tests/cypress/e2e/z.check-block-pattern-exists.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/e2e/z.check-block-pattern-exists.test.js -------------------------------------------------------------------------------- /tests/cypress/fixtures/10up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/fixtures/10up.png -------------------------------------------------------------------------------- /tests/cypress/fixtures/example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/fixtures/example.json -------------------------------------------------------------------------------- /tests/cypress/support/e2e.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/support/e2e.js -------------------------------------------------------------------------------- /tests/cypress/support/functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/support/functions.js -------------------------------------------------------------------------------- /tests/cypress/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tests/cypress/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/10up/cypress-wp-utils/HEAD/tsconfig.json --------------------------------------------------------------------------------