diff --git a/CHANGELOG.md b/CHANGELOG.md index 0148c582..89f91af6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [unreleased] +### Added +- docs: Add alternatives + ### Changed - chore(deps): Update devDependencies +- test(e2e): Rename cypress-10 folder to cypress-latest +- test(e2e): Use Cypress 12 in E2E tests ## [2.2.1] - 2022-08-30 diff --git a/README.md b/README.md index dbe32a03..961755c2 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ Extends Cypress' cy commands with localStorage methods. Allows preserving localS This solution allows you to use all browser localStorage methods through Cypress commands, and preserve it between tests and spec files. It also allows to simulate that localStorage is disabled in the browser. +## Alternatives + +As from Cypress 12, you can use [`cy.session`](https://docs.cypress.io/api/commands/session) and [Cypress Test Isolation](https://docs.cypress.io/guides/core-concepts/test-isolation) in order to persist localStorage between tests. __Anyway, this plugin can be still used for an easier manipulation of the localStorage, writing localStorage assertions and even disabling it for checking the error handling.__ + ## Installation This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies: diff --git a/package-lock.json b/package-lock.json index 7c7f9bc8..9a691175 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,10 +13,10 @@ "@babel/preset-react": "7.18.6", "@stryker-mutator/core": "6.3.0", "@stryker-mutator/jest-runner": "6.3.0", - "cypress": "10.11.0", - "eslint": "8.28.0", + "cypress": "11.2.0", + "eslint": "8.29.0", "eslint-config-prettier": "8.5.0", - "eslint-plugin-jest": "27.1.5", + "eslint-plugin-jest": "27.1.6", "eslint-plugin-mocha": "10.1.0", "eslint-plugin-no-only-tests": "3.1.0", "eslint-plugin-prettier": "4.2.1", @@ -24,9 +24,9 @@ "husky": "8.0.2", "is-ci": "3.0.1", "jest": "29.3.1", - "lint-staged": "13.0.3", - "prettier": "2.7.1", - "sinon": "14.0.2", + "lint-staged": "13.0.4", + "prettier": "2.8.0", + "sinon": "15.0.0", "typescript": "4.9.3" }, "engines": { @@ -3410,9 +3410,9 @@ } }, "node_modules/commander": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz", - "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==", + "version": "9.4.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz", + "integrity": "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==", "dev": true, "engines": { "node": "^12.20.0 || >=14" @@ -3463,9 +3463,9 @@ } }, "node_modules/cypress": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz", - "integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-11.2.0.tgz", + "integrity": "sha512-u61UGwtu7lpsNWLUma/FKNOsrjcI6wleNmda/TyKHe0dOBcVjbCPlp1N6uwFZ0doXev7f/91YDpU9bqDCFeBLA==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -4002,9 +4002,9 @@ } }, "node_modules/eslint": { - "version": "8.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz", - "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==", + "version": "8.29.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz", + "integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==", "dev": true, "dependencies": { "@eslint/eslintrc": "^1.3.3", @@ -4070,9 +4070,9 @@ } }, "node_modules/eslint-plugin-jest": { - "version": "27.1.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.1.5.tgz", - "integrity": "sha512-CK2dekZ5VBdzsOSOH5Fc1rwC+cWXjkcyrmf1RV714nDUDKu+o73TTJiDxpbILG8PtPPpAAl3ywzh5QA7Ft0mjA==", + "version": "27.1.6", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.1.6.tgz", + "integrity": "sha512-XA7RFLSrlQF9IGtAmhddkUkBuICCTuryfOTfCSWcZHiHb69OilIH05oozH2XA6CEOtztnOd0vgXyvxZodkxGjg==", "dev": true, "dependencies": { "@typescript-eslint/utils": "^5.10.0" @@ -7624,9 +7624,9 @@ } }, "node_modules/lilconfig": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.5.tgz", - "integrity": "sha512-xaYmXZtTHPAw5m+xLN8ab9C+3a8YmV3asNSPOATITbtwrfbwaLJj8h66H1WMIpALCkqsIzK3h7oQ+PdX+LQ9Eg==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz", + "integrity": "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==", "dev": true, "engines": { "node": ">=10" @@ -7639,24 +7639,24 @@ "dev": true }, "node_modules/lint-staged": { - "version": "13.0.3", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.0.3.tgz", - "integrity": "sha512-9hmrwSCFroTSYLjflGI8Uk+GWAwMB4OlpU4bMJEAT5d/llQwtYKoim4bLOyLCuWFAhWEupE0vkIFqtw/WIsPug==", + "version": "13.0.4", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.0.4.tgz", + "integrity": "sha512-HxlHCXoYRsq9QCby5wFozmZW00hMs/9e3l+/dz6Qr8Kle4UH0kJTdABAbqhzG+3pcG6QjL9kz7NgGBfph+a5dw==", "dev": true, "dependencies": { "cli-truncate": "^3.1.0", - "colorette": "^2.0.17", - "commander": "^9.3.0", + "colorette": "^2.0.19", + "commander": "^9.4.1", "debug": "^4.3.4", "execa": "^6.1.0", - "lilconfig": "2.0.5", - "listr2": "^4.0.5", + "lilconfig": "2.0.6", + "listr2": "^5.0.5", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", "object-inspect": "^1.12.2", "pidtree": "^0.6.0", "string-argv": "^0.3.1", - "yaml": "^2.1.1" + "yaml": "^2.1.3" }, "bin": { "lint-staged": "bin/lint-staged.js" @@ -7789,22 +7789,22 @@ } }, "node_modules/lint-staged/node_modules/listr2": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-4.0.5.tgz", - "integrity": "sha512-juGHV1doQdpNT3GSTs9IUN43QJb7KHdF9uqg7Vufs/tG9VTzpFphqF4pm/ICdAABGQxsyNn9CiYA3StkI6jpwA==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-5.0.6.tgz", + "integrity": "sha512-u60KxKBy1BR2uLJNTWNptzWQ1ob/gjMzIJPZffAENzpZqbMZ/5PrXXOomDcevIS/+IB7s1mmCEtSlT2qHWMqag==", "dev": true, "dependencies": { "cli-truncate": "^2.1.0", - "colorette": "^2.0.16", + "colorette": "^2.0.19", "log-update": "^4.0.0", "p-map": "^4.0.0", "rfdc": "^1.3.0", - "rxjs": "^7.5.5", + "rxjs": "^7.5.7", "through": "^2.3.8", "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=12" + "node": "^14.13.1 || >=16.0.0" }, "peerDependencies": { "enquirer": ">= 2.3.0 < 3" @@ -7964,6 +7964,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/lint-staged/node_modules/rxjs": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.6.0.tgz", + "integrity": "sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ==", + "dev": true, + "dependencies": { + "tslib": "^2.1.0" + } + }, "node_modules/lint-staged/node_modules/slice-ansi": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", @@ -9090,9 +9099,9 @@ } }, "node_modules/prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz", + "integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==", "dev": true, "bin": { "prettier": "bin-prettier.js" @@ -9565,9 +9574,9 @@ "dev": true }, "node_modules/sinon": { - "version": "14.0.2", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-14.0.2.tgz", - "integrity": "sha512-PDpV0ZI3ZCS3pEqx0vpNp6kzPhHrLx72wA0G+ZLaaJjLIYeE0n8INlgaohKuGy7hP0as5tbUd23QWu5U233t+w==", + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-15.0.0.tgz", + "integrity": "sha512-pV97G1GbslaSJoSdy2F2z8uh5F+uPGp3ddOzA4JsBOUBLEQRz2OAqlKGRFTSh2KiqUCmHkzyAeu7R4x1Hx0wwg==", "dev": true, "dependencies": { "@sinonjs/commons": "^2.0.0", @@ -10406,9 +10415,9 @@ "dev": true }, "node_modules/yaml": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.1.1.tgz", - "integrity": "sha512-o96x3OPo8GjWeSLF+wOAbrPfhFOGY0W00GNaxCDv+9hkcDJEnev1yh8S7pgHF0ik6zc8sQLuL8hjHjJULZp8bw==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.1.3.tgz", + "integrity": "sha512-AacA8nRULjKMX2DvWvOAdBZMOfQlypSFkjcOcu9FalllIDJ1kvlREzcdIZmidQUqqeMv7jorHjq2HlLv/+c2lg==", "dev": true, "engines": { "node": ">= 14" @@ -12990,9 +12999,9 @@ } }, "commander": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz", - "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==", + "version": "9.4.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.1.tgz", + "integrity": "sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==", "dev": true }, "common-tags": { @@ -13034,9 +13043,9 @@ } }, "cypress": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz", - "integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-11.2.0.tgz", + "integrity": "sha512-u61UGwtu7lpsNWLUma/FKNOsrjcI6wleNmda/TyKHe0dOBcVjbCPlp1N6uwFZ0doXev7f/91YDpU9bqDCFeBLA==", "dev": true, "requires": { "@cypress/request": "^2.88.10", @@ -13451,9 +13460,9 @@ "dev": true }, "eslint": { - "version": "8.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz", - "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==", + "version": "8.29.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz", + "integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==", "dev": true, "requires": { "@eslint/eslintrc": "^1.3.3", @@ -13595,9 +13604,9 @@ "requires": {} }, "eslint-plugin-jest": { - "version": "27.1.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.1.5.tgz", - "integrity": "sha512-CK2dekZ5VBdzsOSOH5Fc1rwC+cWXjkcyrmf1RV714nDUDKu+o73TTJiDxpbILG8PtPPpAAl3ywzh5QA7Ft0mjA==", + "version": "27.1.6", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.1.6.tgz", + "integrity": "sha512-XA7RFLSrlQF9IGtAmhddkUkBuICCTuryfOTfCSWcZHiHb69OilIH05oozH2XA6CEOtztnOd0vgXyvxZodkxGjg==", "dev": true, "requires": { "@typescript-eslint/utils": "^5.10.0" @@ -16059,9 +16068,9 @@ } }, "lilconfig": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.5.tgz", - "integrity": "sha512-xaYmXZtTHPAw5m+xLN8ab9C+3a8YmV3asNSPOATITbtwrfbwaLJj8h66H1WMIpALCkqsIzK3h7oQ+PdX+LQ9Eg==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.6.tgz", + "integrity": "sha512-9JROoBW7pobfsx+Sq2JsASvCo6Pfo6WWoUW79HuB1BCoBXD4PLWJPqDF6fNj67pqBYTbAHkE57M1kS/+L1neOg==", "dev": true }, "lines-and-columns": { @@ -16071,24 +16080,24 @@ "dev": true }, "lint-staged": { - "version": "13.0.3", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.0.3.tgz", - "integrity": "sha512-9hmrwSCFroTSYLjflGI8Uk+GWAwMB4OlpU4bMJEAT5d/llQwtYKoim4bLOyLCuWFAhWEupE0vkIFqtw/WIsPug==", + "version": "13.0.4", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-13.0.4.tgz", + "integrity": "sha512-HxlHCXoYRsq9QCby5wFozmZW00hMs/9e3l+/dz6Qr8Kle4UH0kJTdABAbqhzG+3pcG6QjL9kz7NgGBfph+a5dw==", "dev": true, "requires": { "cli-truncate": "^3.1.0", - "colorette": "^2.0.17", - "commander": "^9.3.0", + "colorette": "^2.0.19", + "commander": "^9.4.1", "debug": "^4.3.4", "execa": "^6.1.0", - "lilconfig": "2.0.5", - "listr2": "^4.0.5", + "lilconfig": "2.0.6", + "listr2": "^5.0.5", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", "object-inspect": "^1.12.2", "pidtree": "^0.6.0", "string-argv": "^0.3.1", - "yaml": "^2.1.1" + "yaml": "^2.1.3" }, "dependencies": { "ansi-regex": { @@ -16170,17 +16179,17 @@ "dev": true }, "listr2": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-4.0.5.tgz", - "integrity": "sha512-juGHV1doQdpNT3GSTs9IUN43QJb7KHdF9uqg7Vufs/tG9VTzpFphqF4pm/ICdAABGQxsyNn9CiYA3StkI6jpwA==", + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-5.0.6.tgz", + "integrity": "sha512-u60KxKBy1BR2uLJNTWNptzWQ1ob/gjMzIJPZffAENzpZqbMZ/5PrXXOomDcevIS/+IB7s1mmCEtSlT2qHWMqag==", "dev": true, "requires": { "cli-truncate": "^2.1.0", - "colorette": "^2.0.16", + "colorette": "^2.0.19", "log-update": "^4.0.0", "p-map": "^4.0.0", "rfdc": "^1.3.0", - "rxjs": "^7.5.5", + "rxjs": "^7.5.7", "through": "^2.3.8", "wrap-ansi": "^7.0.0" }, @@ -16285,6 +16294,15 @@ "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true }, + "rxjs": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.6.0.tgz", + "integrity": "sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ==", + "dev": true, + "requires": { + "tslib": "^2.1.0" + } + }, "slice-ansi": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz", @@ -17123,9 +17141,9 @@ "dev": true }, "prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz", + "integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==", "dev": true }, "prettier-linter-helpers": { @@ -17459,9 +17477,9 @@ "dev": true }, "sinon": { - "version": "14.0.2", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-14.0.2.tgz", - "integrity": "sha512-PDpV0ZI3ZCS3pEqx0vpNp6kzPhHrLx72wA0G+ZLaaJjLIYeE0n8INlgaohKuGy7hP0as5tbUd23QWu5U233t+w==", + "version": "15.0.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-15.0.0.tgz", + "integrity": "sha512-pV97G1GbslaSJoSdy2F2z8uh5F+uPGp3ddOzA4JsBOUBLEQRz2OAqlKGRFTSh2KiqUCmHkzyAeu7R4x1Hx0wwg==", "dev": true, "requires": { "@sinonjs/commons": "^2.0.0", @@ -18092,9 +18110,9 @@ "dev": true }, "yaml": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.1.1.tgz", - "integrity": "sha512-o96x3OPo8GjWeSLF+wOAbrPfhFOGY0W00GNaxCDv+9hkcDJEnev1yh8S7pgHF0ik6zc8sQLuL8hjHjJULZp8bw==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.1.3.tgz", + "integrity": "sha512-AacA8nRULjKMX2DvWvOAdBZMOfQlypSFkjcOcu9FalllIDJ1kvlREzcdIZmidQUqqeMv7jorHjq2HlLv/+c2lg==", "dev": true }, "yargs": { diff --git a/package.json b/package.json index 3386abcf..1262a653 100644 --- a/package.json +++ b/package.json @@ -26,9 +26,9 @@ "main": "index.js", "types": "index.d.ts", "scripts": { - "install:all": "npm run test:e2e:cypress-typescript:install && npm run test:e2e:cypress-9:install && npm run test:e2e:cypress-9-no-plugin:install && npm run test:e2e:cypress-10:install && npm run test:e2e:cypress-10-no-plugin:install", + "install:all": "npm run test:e2e:cypress-typescript:install && npm run test:e2e:cypress-9:install && npm run test:e2e:cypress-9-no-plugin:install && npm run test:e2e:cypress-latest:install && npm run test:e2e:cypress-latest-no-plugin:install", "lint:typescript": "cd test-e2e/cypress-typescript && npm run copy:library && npm run lint", - "lint:javascript": "eslint src test test-e2e/app test-e2e/cypress-9 test-e2e/cypress-9-no-plugin test-e2e/cypress-10 test-e2e/cypress-10-no-plugin test-e2e/specs *.js", + "lint:javascript": "eslint src test test-e2e/app test-e2e/cypress-9 test-e2e/cypress-9-no-plugin test-e2e/cypress-latest test-e2e/cypress-latest-no-plugin test-e2e/specs *.js", "lint:all": "npm run lint:javascript && npm run lint:typescript", "lint": "npm run install:all && npm run lint:all", "lint:local": "npm run lint:all", @@ -41,16 +41,16 @@ "test:e2e:cypress-9-no-plugin:install": "cd test-e2e/cypress-9-no-plugin && npm i", "test:e2e:cypress-9-no-plugin": "cd test-e2e/cypress-9-no-plugin && npm run test:ci", "test:e2e:cypress-9-no-plugin:ci": "npm run test:e2e:cypress-9-no-plugin:install && npm run test:e2e:cypress-9-no-plugin", - "test:e2e:cypress-10:install": "cd test-e2e/cypress-10 && npm i", - "test:e2e:cypress-10": "cd test-e2e/cypress-10 && npm run test:ci", - "test:e2e:cypress-10:ci": "npm run test:e2e:cypress-10:install && npm run test:e2e:cypress-10", - "test:e2e:cypress-10-no-plugin:install": "cd test-e2e/cypress-10-no-plugin && npm i", - "test:e2e:cypress-10-no-plugin": "cd test-e2e/cypress-10-no-plugin && npm run test:ci", - "test:e2e:cypress-10-no-plugin:ci": "npm run test:e2e:cypress-10-no-plugin:install && npm run test:e2e:cypress-10-no-plugin", + "test:e2e:cypress-latest:install": "cd test-e2e/cypress-latest && npm i", + "test:e2e:cypress-latest": "cd test-e2e/cypress-latest && npm run test:ci", + "test:e2e:cypress-latest:ci": "npm run test:e2e:cypress-latest:install && npm run test:e2e:cypress-latest", + "test:e2e:cypress-latest-no-plugin:install": "cd test-e2e/cypress-latest-no-plugin && npm i", + "test:e2e:cypress-latest-no-plugin": "cd test-e2e/cypress-latest-no-plugin && npm run test:ci", + "test:e2e:cypress-latest-no-plugin:ci": "npm run test:e2e:cypress-latest-no-plugin:install && npm run test:e2e:cypress-latest-no-plugin", "test:e2e:cypress-typescript:install": "cd test-e2e/cypress-typescript && npm i", "test:e2e:cypress-typescript": "cd test-e2e/cypress-typescript && npm run test:ci", "test:e2e:cypress-typescript:ci": "npm run test:e2e:cypress-typescript:install && npm run test:e2e:cypress-typescript", - "test:e2e": "npm run test:e2e:app:install && npm run test:e2e:cypress-9:ci && npm run test:e2e:cypress-9-no-plugin:ci && npm run test:e2e:cypress-10:ci && npm run test:e2e:cypress-10-no-plugin:ci && npm run test:e2e:cypress-typescript:ci", + "test:e2e": "npm run test:e2e:app:install && npm run test:e2e:cypress-9:ci && npm run test:e2e:cypress-9-no-plugin:ci && npm run test:e2e:cypress-latest:ci && npm run test:e2e:cypress-latest-no-plugin:ci && npm run test:e2e:cypress-typescript:ci", "test:unit": "npm run test", "test:mutation": "stryker run", "test:ci": "npm run test:unit && npm run test:mutation && npm run test:e2e", @@ -65,10 +65,10 @@ "@babel/preset-react": "7.18.6", "@stryker-mutator/core": "6.3.0", "@stryker-mutator/jest-runner": "6.3.0", - "cypress": "10.11.0", - "eslint": "8.28.0", + "cypress": "11.2.0", + "eslint": "8.29.0", "eslint-config-prettier": "8.5.0", - "eslint-plugin-jest": "27.1.5", + "eslint-plugin-jest": "27.1.6", "eslint-plugin-mocha": "10.1.0", "eslint-plugin-no-only-tests": "3.1.0", "eslint-plugin-prettier": "4.2.1", @@ -76,9 +76,9 @@ "husky": "8.0.2", "is-ci": "3.0.1", "jest": "29.3.1", - "lint-staged": "13.0.3", - "prettier": "2.7.1", - "sinon": "14.0.2", + "lint-staged": "13.0.4", + "prettier": "2.8.0", + "sinon": "15.0.0", "typescript": "4.9.3" }, "lint-staged": { @@ -89,8 +89,8 @@ "test-e2e/specs/**/*.js": "eslint", "test-e2e/cypress-9/**/*.js": "eslint", "test-e2e/cypress-9-no-plugin/**/*.js": "eslint", - "test-e2e/cypress-10/**/*.js": "eslint", - "test-e2e/cypress-10-no-plugin/**/*.js": "eslint", + "test-e2e/cypress-latest/**/*.js": "eslint", + "test-e2e/cypress-latest-no-plugin/**/*.js": "eslint", "test-e2e/typescript/**/*.js": "npm run lint:typescript", "test-e2e/typescript/**/*.ts": "npm run lint:typescript" }, diff --git a/renovate.json b/renovate.json index 17e825e2..fd0f5e25 100644 --- a/renovate.json +++ b/renovate.json @@ -14,14 +14,14 @@ "allowedVersions": "9.x" }, { - "matchPaths": ["test-e2e/cypress-10/package.json"], + "matchPaths": ["test-e2e/cypress-latest/package.json"], "matchPackageNames": ["cypress"], - "allowedVersions": "10.x" + "allowedVersions": "12.x" }, { - "matchPaths": ["test-e2e/cypress-10-no-plugin/package.json"], + "matchPaths": ["test-e2e/cypress-latest-no-plugin/package.json"], "matchPackageNames": ["cypress"], - "allowedVersions": "10.x" + "allowedVersions": "12.x" } ] } diff --git a/test-e2e/cypress-9-no-plugin/package-lock.json b/test-e2e/cypress-9-no-plugin/package-lock.json index 66aed3a7..e0fcf0e2 100644 --- a/test-e2e/cypress-9-no-plugin/package-lock.json +++ b/test-e2e/cypress-9-no-plugin/package-lock.json @@ -7,11 +7,11 @@ "": { "name": "cypress-9", "devDependencies": { - "@cypress/webpack-preprocessor": "5.15.5", + "@cypress/webpack-preprocessor": "5.15.6", "babel-loader": "8.3.0", "babel-plugin-module-resolver": "4.1.0", "cypress": "9.7.0", - "start-server-and-test": "1.14.0", + "start-server-and-test": "1.15.1", "webpack": "5.75.0" } }, @@ -1753,9 +1753,9 @@ } }, "node_modules/@cypress/webpack-preprocessor": { - "version": "5.15.5", - "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.5.tgz", - "integrity": "sha512-ZV2ZylabogNDK3+xwDIWswudCJMFDT9XU6tTGni2xWow/brBvI55sEqcjvb6+9x8skMSPM6vLxdvf/FAOmNEFQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.6.tgz", + "integrity": "sha512-UCpDxj0PJTenvBJsAuSIyymZWnfvseZHNLbXlMZV+H939dYp7FhAcI58CAwWvjMEu2peQfsFpE+QWrMJvBIobQ==", "dev": true, "dependencies": { "@babel/parser": "7.13.0", @@ -2256,6 +2256,12 @@ } ] }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, "node_modules/asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -3135,9 +3141,9 @@ "dev": true }, "node_modules/debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "dependencies": { "ms": "2.1.2" @@ -5117,14 +5123,15 @@ } }, "node_modules/start-server-and-test": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.14.0.tgz", - "integrity": "sha512-on5ELuxO2K0t8EmNj9MtVlFqwBMxfWOhu4U7uZD1xccVpFlOQKR93CSe0u98iQzfNxRyaNTb/CdadbNllplTsw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.15.1.tgz", + "integrity": "sha512-ixhMbUAmym+7k3kqhjhTt6/0eUwE3dbNZPWgcfEUJ5uStaHbT0m8VB+049V5V9X0ueEyxAkwnkkR2SEhCKst5g==", "dev": true, "dependencies": { + "arg": "^5.0.2", "bluebird": "3.7.2", "check-more-types": "2.24.0", - "debug": "4.3.2", + "debug": "4.3.4", "execa": "5.1.1", "lazy-ass": "1.6.0", "ps-tree": "1.2.0", @@ -7030,9 +7037,9 @@ } }, "@cypress/webpack-preprocessor": { - "version": "5.15.5", - "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.5.tgz", - "integrity": "sha512-ZV2ZylabogNDK3+xwDIWswudCJMFDT9XU6tTGni2xWow/brBvI55sEqcjvb6+9x8skMSPM6vLxdvf/FAOmNEFQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.6.tgz", + "integrity": "sha512-UCpDxj0PJTenvBJsAuSIyymZWnfvseZHNLbXlMZV+H939dYp7FhAcI58CAwWvjMEu2peQfsFpE+QWrMJvBIobQ==", "dev": true, "requires": { "@babel/parser": "7.13.0", @@ -7467,6 +7474,12 @@ "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", "dev": true }, + "arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, "asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -8130,9 +8143,9 @@ "dev": true }, "debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { "ms": "2.1.2" @@ -9661,14 +9674,15 @@ } }, "start-server-and-test": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.14.0.tgz", - "integrity": "sha512-on5ELuxO2K0t8EmNj9MtVlFqwBMxfWOhu4U7uZD1xccVpFlOQKR93CSe0u98iQzfNxRyaNTb/CdadbNllplTsw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.15.1.tgz", + "integrity": "sha512-ixhMbUAmym+7k3kqhjhTt6/0eUwE3dbNZPWgcfEUJ5uStaHbT0m8VB+049V5V9X0ueEyxAkwnkkR2SEhCKst5g==", "dev": true, "requires": { + "arg": "^5.0.2", "bluebird": "3.7.2", "check-more-types": "2.24.0", - "debug": "4.3.2", + "debug": "4.3.4", "execa": "5.1.1", "lazy-ass": "1.6.0", "ps-tree": "1.2.0", diff --git a/test-e2e/cypress-9-no-plugin/package.json b/test-e2e/cypress-9-no-plugin/package.json index bd5b0129..45569834 100644 --- a/test-e2e/cypress-9-no-plugin/package.json +++ b/test-e2e/cypress-9-no-plugin/package.json @@ -12,11 +12,11 @@ "test:ci": "npm run copy:specs && npm run build-and-serve-and-cypress" }, "devDependencies": { - "@cypress/webpack-preprocessor": "5.15.5", + "@cypress/webpack-preprocessor": "5.15.6", "babel-loader": "8.3.0", "babel-plugin-module-resolver": "4.1.0", "cypress": "9.7.0", - "start-server-and-test": "1.14.0", + "start-server-and-test": "1.15.1", "webpack": "5.75.0" } } diff --git a/test-e2e/cypress-9/package-lock.json b/test-e2e/cypress-9/package-lock.json index 66aed3a7..e0fcf0e2 100644 --- a/test-e2e/cypress-9/package-lock.json +++ b/test-e2e/cypress-9/package-lock.json @@ -7,11 +7,11 @@ "": { "name": "cypress-9", "devDependencies": { - "@cypress/webpack-preprocessor": "5.15.5", + "@cypress/webpack-preprocessor": "5.15.6", "babel-loader": "8.3.0", "babel-plugin-module-resolver": "4.1.0", "cypress": "9.7.0", - "start-server-and-test": "1.14.0", + "start-server-and-test": "1.15.1", "webpack": "5.75.0" } }, @@ -1753,9 +1753,9 @@ } }, "node_modules/@cypress/webpack-preprocessor": { - "version": "5.15.5", - "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.5.tgz", - "integrity": "sha512-ZV2ZylabogNDK3+xwDIWswudCJMFDT9XU6tTGni2xWow/brBvI55sEqcjvb6+9x8skMSPM6vLxdvf/FAOmNEFQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.6.tgz", + "integrity": "sha512-UCpDxj0PJTenvBJsAuSIyymZWnfvseZHNLbXlMZV+H939dYp7FhAcI58CAwWvjMEu2peQfsFpE+QWrMJvBIobQ==", "dev": true, "dependencies": { "@babel/parser": "7.13.0", @@ -2256,6 +2256,12 @@ } ] }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, "node_modules/asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -3135,9 +3141,9 @@ "dev": true }, "node_modules/debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "dependencies": { "ms": "2.1.2" @@ -5117,14 +5123,15 @@ } }, "node_modules/start-server-and-test": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.14.0.tgz", - "integrity": "sha512-on5ELuxO2K0t8EmNj9MtVlFqwBMxfWOhu4U7uZD1xccVpFlOQKR93CSe0u98iQzfNxRyaNTb/CdadbNllplTsw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.15.1.tgz", + "integrity": "sha512-ixhMbUAmym+7k3kqhjhTt6/0eUwE3dbNZPWgcfEUJ5uStaHbT0m8VB+049V5V9X0ueEyxAkwnkkR2SEhCKst5g==", "dev": true, "dependencies": { + "arg": "^5.0.2", "bluebird": "3.7.2", "check-more-types": "2.24.0", - "debug": "4.3.2", + "debug": "4.3.4", "execa": "5.1.1", "lazy-ass": "1.6.0", "ps-tree": "1.2.0", @@ -7030,9 +7037,9 @@ } }, "@cypress/webpack-preprocessor": { - "version": "5.15.5", - "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.5.tgz", - "integrity": "sha512-ZV2ZylabogNDK3+xwDIWswudCJMFDT9XU6tTGni2xWow/brBvI55sEqcjvb6+9x8skMSPM6vLxdvf/FAOmNEFQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.6.tgz", + "integrity": "sha512-UCpDxj0PJTenvBJsAuSIyymZWnfvseZHNLbXlMZV+H939dYp7FhAcI58CAwWvjMEu2peQfsFpE+QWrMJvBIobQ==", "dev": true, "requires": { "@babel/parser": "7.13.0", @@ -7467,6 +7474,12 @@ "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", "dev": true }, + "arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, "asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -8130,9 +8143,9 @@ "dev": true }, "debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { "ms": "2.1.2" @@ -9661,14 +9674,15 @@ } }, "start-server-and-test": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.14.0.tgz", - "integrity": "sha512-on5ELuxO2K0t8EmNj9MtVlFqwBMxfWOhu4U7uZD1xccVpFlOQKR93CSe0u98iQzfNxRyaNTb/CdadbNllplTsw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.15.1.tgz", + "integrity": "sha512-ixhMbUAmym+7k3kqhjhTt6/0eUwE3dbNZPWgcfEUJ5uStaHbT0m8VB+049V5V9X0ueEyxAkwnkkR2SEhCKst5g==", "dev": true, "requires": { + "arg": "^5.0.2", "bluebird": "3.7.2", "check-more-types": "2.24.0", - "debug": "4.3.2", + "debug": "4.3.4", "execa": "5.1.1", "lazy-ass": "1.6.0", "ps-tree": "1.2.0", diff --git a/test-e2e/cypress-9/package.json b/test-e2e/cypress-9/package.json index bd5b0129..45569834 100644 --- a/test-e2e/cypress-9/package.json +++ b/test-e2e/cypress-9/package.json @@ -12,11 +12,11 @@ "test:ci": "npm run copy:specs && npm run build-and-serve-and-cypress" }, "devDependencies": { - "@cypress/webpack-preprocessor": "5.15.5", + "@cypress/webpack-preprocessor": "5.15.6", "babel-loader": "8.3.0", "babel-plugin-module-resolver": "4.1.0", "cypress": "9.7.0", - "start-server-and-test": "1.14.0", + "start-server-and-test": "1.15.1", "webpack": "5.75.0" } } diff --git a/test-e2e/cypress-10-no-plugin/.eslintignore b/test-e2e/cypress-latest-no-plugin/.eslintignore similarity index 100% rename from test-e2e/cypress-10-no-plugin/.eslintignore rename to test-e2e/cypress-latest-no-plugin/.eslintignore diff --git a/test-e2e/cypress-10-no-plugin/.eslintrc.js b/test-e2e/cypress-latest-no-plugin/.eslintrc.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/.eslintrc.js rename to test-e2e/cypress-latest-no-plugin/.eslintrc.js diff --git a/test-e2e/cypress-10-no-plugin/.gitignore b/test-e2e/cypress-latest-no-plugin/.gitignore similarity index 100% rename from test-e2e/cypress-10-no-plugin/.gitignore rename to test-e2e/cypress-latest-no-plugin/.gitignore diff --git a/test-e2e/cypress-10-no-plugin/babel.config.js b/test-e2e/cypress-latest-no-plugin/babel.config.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/babel.config.js rename to test-e2e/cypress-latest-no-plugin/babel.config.js diff --git a/test-e2e/cypress-10-no-plugin/cypress.config.js b/test-e2e/cypress-latest-no-plugin/cypress.config.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/cypress.config.js rename to test-e2e/cypress-latest-no-plugin/cypress.config.js diff --git a/test-e2e/cypress-10-no-plugin/cypress/.eslintrc.json b/test-e2e/cypress-latest-no-plugin/cypress/.eslintrc.json similarity index 100% rename from test-e2e/cypress-10-no-plugin/cypress/.eslintrc.json rename to test-e2e/cypress-latest-no-plugin/cypress/.eslintrc.json diff --git a/test-e2e/cypress-10-no-plugin/cypress/plugins/index.js b/test-e2e/cypress-latest-no-plugin/cypress/plugins/index.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/cypress/plugins/index.js rename to test-e2e/cypress-latest-no-plugin/cypress/plugins/index.js diff --git a/test-e2e/cypress-10-no-plugin/cypress/support/commands.js b/test-e2e/cypress-latest-no-plugin/cypress/support/commands.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/cypress/support/commands.js rename to test-e2e/cypress-latest-no-plugin/cypress/support/commands.js diff --git a/test-e2e/cypress-10-no-plugin/cypress/support/e2e.js b/test-e2e/cypress-latest-no-plugin/cypress/support/e2e.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/cypress/support/e2e.js rename to test-e2e/cypress-latest-no-plugin/cypress/support/e2e.js diff --git a/test-e2e/cypress-10-no-plugin/package-lock.json b/test-e2e/cypress-latest-no-plugin/package-lock.json similarity index 99% rename from test-e2e/cypress-10-no-plugin/package-lock.json rename to test-e2e/cypress-latest-no-plugin/package-lock.json index f2cb4f23..5131d8a5 100644 --- a/test-e2e/cypress-10-no-plugin/package-lock.json +++ b/test-e2e/cypress-latest-no-plugin/package-lock.json @@ -7,11 +7,11 @@ "": { "name": "cypress-10", "devDependencies": { - "@cypress/webpack-preprocessor": "5.15.5", + "@cypress/webpack-preprocessor": "5.15.6", "babel-loader": "8.3.0", "babel-plugin-module-resolver": "4.1.0", - "cypress": "10.11.0", - "start-server-and-test": "1.14.0", + "cypress": "12.0.1", + "start-server-and-test": "1.15.1", "webpack": "5.75.0" } }, @@ -1753,9 +1753,9 @@ } }, "node_modules/@cypress/webpack-preprocessor": { - "version": "5.15.5", - "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.5.tgz", - "integrity": "sha512-ZV2ZylabogNDK3+xwDIWswudCJMFDT9XU6tTGni2xWow/brBvI55sEqcjvb6+9x8skMSPM6vLxdvf/FAOmNEFQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.6.tgz", + "integrity": "sha512-UCpDxj0PJTenvBJsAuSIyymZWnfvseZHNLbXlMZV+H939dYp7FhAcI58CAwWvjMEu2peQfsFpE+QWrMJvBIobQ==", "dev": true, "dependencies": { "@babel/parser": "7.13.0", @@ -2279,6 +2279,12 @@ } ] }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, "node_modules/asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -2867,9 +2873,9 @@ } }, "node_modules/cypress": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz", - "integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-12.0.1.tgz", + "integrity": "sha512-I1Ag5RsPEINfUlQtV6xwkd6ktJuu5QGiKZ3pFa/IXjcyCY6I7CH3gOz0juLOhg/LXOPrQtZH35ulcWDQohyyEA==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -2920,7 +2926,7 @@ "cypress": "bin/cypress" }, "engines": { - "node": ">=12.0.0" + "node": "^14.0.0 || ^16.0.0 || >=18.0.0" } }, "node_modules/cypress/node_modules/ansi-styles": { @@ -3027,9 +3033,9 @@ "dev": true }, "node_modules/debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "dependencies": { "ms": "2.1.2" @@ -5102,14 +5108,15 @@ } }, "node_modules/start-server-and-test": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.14.0.tgz", - "integrity": "sha512-on5ELuxO2K0t8EmNj9MtVlFqwBMxfWOhu4U7uZD1xccVpFlOQKR93CSe0u98iQzfNxRyaNTb/CdadbNllplTsw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.15.1.tgz", + "integrity": "sha512-ixhMbUAmym+7k3kqhjhTt6/0eUwE3dbNZPWgcfEUJ5uStaHbT0m8VB+049V5V9X0ueEyxAkwnkkR2SEhCKst5g==", "dev": true, "dependencies": { + "arg": "^5.0.2", "bluebird": "3.7.2", "check-more-types": "2.24.0", - "debug": "4.3.2", + "debug": "4.3.4", "execa": "5.1.1", "lazy-ass": "1.6.0", "ps-tree": "1.2.0", @@ -6947,9 +6954,9 @@ } }, "@cypress/webpack-preprocessor": { - "version": "5.15.5", - "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.5.tgz", - "integrity": "sha512-ZV2ZylabogNDK3+xwDIWswudCJMFDT9XU6tTGni2xWow/brBvI55sEqcjvb6+9x8skMSPM6vLxdvf/FAOmNEFQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.6.tgz", + "integrity": "sha512-UCpDxj0PJTenvBJsAuSIyymZWnfvseZHNLbXlMZV+H939dYp7FhAcI58CAwWvjMEu2peQfsFpE+QWrMJvBIobQ==", "dev": true, "requires": { "@babel/parser": "7.13.0", @@ -7401,6 +7408,12 @@ "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", "dev": true }, + "arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, "asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -7848,9 +7861,9 @@ "dev": true }, "cypress": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz", - "integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-12.0.1.tgz", + "integrity": "sha512-I1Ag5RsPEINfUlQtV6xwkd6ktJuu5QGiKZ3pFa/IXjcyCY6I7CH3gOz0juLOhg/LXOPrQtZH35ulcWDQohyyEA==", "dev": true, "requires": { "@cypress/request": "^2.88.10", @@ -7975,9 +7988,9 @@ "dev": true }, "debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { "ms": "2.1.2" @@ -9571,14 +9584,15 @@ } }, "start-server-and-test": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.14.0.tgz", - "integrity": "sha512-on5ELuxO2K0t8EmNj9MtVlFqwBMxfWOhu4U7uZD1xccVpFlOQKR93CSe0u98iQzfNxRyaNTb/CdadbNllplTsw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.15.1.tgz", + "integrity": "sha512-ixhMbUAmym+7k3kqhjhTt6/0eUwE3dbNZPWgcfEUJ5uStaHbT0m8VB+049V5V9X0ueEyxAkwnkkR2SEhCKst5g==", "dev": true, "requires": { + "arg": "^5.0.2", "bluebird": "3.7.2", "check-more-types": "2.24.0", - "debug": "4.3.2", + "debug": "4.3.4", "execa": "5.1.1", "lazy-ass": "1.6.0", "ps-tree": "1.2.0", diff --git a/test-e2e/cypress-10-no-plugin/package.json b/test-e2e/cypress-latest-no-plugin/package.json similarity index 81% rename from test-e2e/cypress-10-no-plugin/package.json rename to test-e2e/cypress-latest-no-plugin/package.json index 0dd2aed0..3405983c 100644 --- a/test-e2e/cypress-10-no-plugin/package.json +++ b/test-e2e/cypress-latest-no-plugin/package.json @@ -10,11 +10,11 @@ "test:ci": "start-server-and-test build:serve http-get://localhost:3000 cypress:run" }, "devDependencies": { - "@cypress/webpack-preprocessor": "5.15.5", + "@cypress/webpack-preprocessor": "5.15.6", "babel-loader": "8.3.0", "babel-plugin-module-resolver": "4.1.0", - "cypress": "10.11.0", - "start-server-and-test": "1.14.0", + "cypress": "12.0.1", + "start-server-and-test": "1.15.1", "webpack": "5.75.0" } } diff --git a/test-e2e/cypress-10-no-plugin/src/App.css b/test-e2e/cypress-latest-no-plugin/src/App.css similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/App.css rename to test-e2e/cypress-latest-no-plugin/src/App.css diff --git a/test-e2e/cypress-10-no-plugin/src/App.js b/test-e2e/cypress-latest-no-plugin/src/App.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/App.js rename to test-e2e/cypress-latest-no-plugin/src/App.js diff --git a/test-e2e/cypress-10-no-plugin/src/components/cookies-button/CookiesButton.css b/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.css similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/components/cookies-button/CookiesButton.css rename to test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.css diff --git a/test-e2e/cypress-10-no-plugin/src/components/cookies-button/CookiesButton.js b/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/components/cookies-button/CookiesButton.js rename to test-e2e/cypress-latest-no-plugin/src/components/cookies-button/CookiesButton.js diff --git a/test-e2e/cypress-10-no-plugin/src/components/cookies-button/index.js b/test-e2e/cypress-latest-no-plugin/src/components/cookies-button/index.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/components/cookies-button/index.js rename to test-e2e/cypress-latest-no-plugin/src/components/cookies-button/index.js diff --git a/test-e2e/cypress-10-no-plugin/src/components/cookies-value/CookiesValue.js b/test-e2e/cypress-latest-no-plugin/src/components/cookies-value/CookiesValue.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/components/cookies-value/CookiesValue.js rename to test-e2e/cypress-latest-no-plugin/src/components/cookies-value/CookiesValue.js diff --git a/test-e2e/cypress-10-no-plugin/src/components/cookies-value/index.js b/test-e2e/cypress-latest-no-plugin/src/components/cookies-value/index.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/components/cookies-value/index.js rename to test-e2e/cypress-latest-no-plugin/src/components/cookies-value/index.js diff --git a/test-e2e/cypress-10-no-plugin/src/data/user-preferences/actions.js b/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/actions.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/data/user-preferences/actions.js rename to test-e2e/cypress-latest-no-plugin/src/data/user-preferences/actions.js diff --git a/test-e2e/cypress-10-no-plugin/src/data/user-preferences/index.js b/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/index.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/data/user-preferences/index.js rename to test-e2e/cypress-latest-no-plugin/src/data/user-preferences/index.js diff --git a/test-e2e/cypress-10-no-plugin/src/data/user-preferences/origins.js b/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/origins.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/data/user-preferences/origins.js rename to test-e2e/cypress-latest-no-plugin/src/data/user-preferences/origins.js diff --git a/test-e2e/cypress-10-no-plugin/src/data/user-preferences/selectors.js b/test-e2e/cypress-latest-no-plugin/src/data/user-preferences/selectors.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/data/user-preferences/selectors.js rename to test-e2e/cypress-latest-no-plugin/src/data/user-preferences/selectors.js diff --git a/test-e2e/cypress-10-no-plugin/src/index.css b/test-e2e/cypress-latest-no-plugin/src/index.css similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/index.css rename to test-e2e/cypress-latest-no-plugin/src/index.css diff --git a/test-e2e/cypress-10-no-plugin/src/index.js b/test-e2e/cypress-latest-no-plugin/src/index.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/index.js rename to test-e2e/cypress-latest-no-plugin/src/index.js diff --git a/test-e2e/cypress-10-no-plugin/src/modules/accept-cookies/AcceptCookies.js b/test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/AcceptCookies.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/modules/accept-cookies/AcceptCookies.js rename to test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/AcceptCookies.js diff --git a/test-e2e/cypress-10-no-plugin/src/modules/accept-cookies/index.js b/test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/index.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/modules/accept-cookies/index.js rename to test-e2e/cypress-latest-no-plugin/src/modules/accept-cookies/index.js diff --git a/test-e2e/cypress-10-no-plugin/src/modules/cookies-value/CookiesValue.js b/test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/CookiesValue.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/modules/cookies-value/CookiesValue.js rename to test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/CookiesValue.js diff --git a/test-e2e/cypress-10-no-plugin/src/modules/cookies-value/index.js b/test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/index.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/modules/cookies-value/index.js rename to test-e2e/cypress-latest-no-plugin/src/modules/cookies-value/index.js diff --git a/test-e2e/cypress-10-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.css b/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.css similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.css rename to test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.css diff --git a/test-e2e/cypress-10-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.js b/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.js rename to test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/LocalStorageWarning.js diff --git a/test-e2e/cypress-10-no-plugin/src/modules/localstorage-warning/index.js b/test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/index.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/modules/localstorage-warning/index.js rename to test-e2e/cypress-latest-no-plugin/src/modules/localstorage-warning/index.js diff --git a/test-e2e/cypress-10-no-plugin/src/modules/reject-cookies/RejectCookies.js b/test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/RejectCookies.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/modules/reject-cookies/RejectCookies.js rename to test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/RejectCookies.js diff --git a/test-e2e/cypress-10-no-plugin/src/modules/reject-cookies/index.js b/test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/index.js similarity index 100% rename from test-e2e/cypress-10-no-plugin/src/modules/reject-cookies/index.js rename to test-e2e/cypress-latest-no-plugin/src/modules/reject-cookies/index.js diff --git a/test-e2e/cypress-10/.eslintignore b/test-e2e/cypress-latest/.eslintignore similarity index 100% rename from test-e2e/cypress-10/.eslintignore rename to test-e2e/cypress-latest/.eslintignore diff --git a/test-e2e/cypress-10/.eslintrc.js b/test-e2e/cypress-latest/.eslintrc.js similarity index 100% rename from test-e2e/cypress-10/.eslintrc.js rename to test-e2e/cypress-latest/.eslintrc.js diff --git a/test-e2e/cypress-10/.gitignore b/test-e2e/cypress-latest/.gitignore similarity index 100% rename from test-e2e/cypress-10/.gitignore rename to test-e2e/cypress-latest/.gitignore diff --git a/test-e2e/cypress-10/babel.config.js b/test-e2e/cypress-latest/babel.config.js similarity index 100% rename from test-e2e/cypress-10/babel.config.js rename to test-e2e/cypress-latest/babel.config.js diff --git a/test-e2e/cypress-10/cypress.config.js b/test-e2e/cypress-latest/cypress.config.js similarity index 100% rename from test-e2e/cypress-10/cypress.config.js rename to test-e2e/cypress-latest/cypress.config.js diff --git a/test-e2e/cypress-10/cypress/.eslintrc.json b/test-e2e/cypress-latest/cypress/.eslintrc.json similarity index 100% rename from test-e2e/cypress-10/cypress/.eslintrc.json rename to test-e2e/cypress-latest/cypress/.eslintrc.json diff --git a/test-e2e/cypress-10/cypress/plugins/index.js b/test-e2e/cypress-latest/cypress/plugins/index.js similarity index 100% rename from test-e2e/cypress-10/cypress/plugins/index.js rename to test-e2e/cypress-latest/cypress/plugins/index.js diff --git a/test-e2e/cypress-10/cypress/support/commands.js b/test-e2e/cypress-latest/cypress/support/commands.js similarity index 100% rename from test-e2e/cypress-10/cypress/support/commands.js rename to test-e2e/cypress-latest/cypress/support/commands.js diff --git a/test-e2e/cypress-10/cypress/support/e2e.js b/test-e2e/cypress-latest/cypress/support/e2e.js similarity index 100% rename from test-e2e/cypress-10/cypress/support/e2e.js rename to test-e2e/cypress-latest/cypress/support/e2e.js diff --git a/test-e2e/cypress-10/package-lock.json b/test-e2e/cypress-latest/package-lock.json similarity index 99% rename from test-e2e/cypress-10/package-lock.json rename to test-e2e/cypress-latest/package-lock.json index f2cb4f23..5131d8a5 100644 --- a/test-e2e/cypress-10/package-lock.json +++ b/test-e2e/cypress-latest/package-lock.json @@ -7,11 +7,11 @@ "": { "name": "cypress-10", "devDependencies": { - "@cypress/webpack-preprocessor": "5.15.5", + "@cypress/webpack-preprocessor": "5.15.6", "babel-loader": "8.3.0", "babel-plugin-module-resolver": "4.1.0", - "cypress": "10.11.0", - "start-server-and-test": "1.14.0", + "cypress": "12.0.1", + "start-server-and-test": "1.15.1", "webpack": "5.75.0" } }, @@ -1753,9 +1753,9 @@ } }, "node_modules/@cypress/webpack-preprocessor": { - "version": "5.15.5", - "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.5.tgz", - "integrity": "sha512-ZV2ZylabogNDK3+xwDIWswudCJMFDT9XU6tTGni2xWow/brBvI55sEqcjvb6+9x8skMSPM6vLxdvf/FAOmNEFQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.6.tgz", + "integrity": "sha512-UCpDxj0PJTenvBJsAuSIyymZWnfvseZHNLbXlMZV+H939dYp7FhAcI58CAwWvjMEu2peQfsFpE+QWrMJvBIobQ==", "dev": true, "dependencies": { "@babel/parser": "7.13.0", @@ -2279,6 +2279,12 @@ } ] }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, "node_modules/asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -2867,9 +2873,9 @@ } }, "node_modules/cypress": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz", - "integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-12.0.1.tgz", + "integrity": "sha512-I1Ag5RsPEINfUlQtV6xwkd6ktJuu5QGiKZ3pFa/IXjcyCY6I7CH3gOz0juLOhg/LXOPrQtZH35ulcWDQohyyEA==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -2920,7 +2926,7 @@ "cypress": "bin/cypress" }, "engines": { - "node": ">=12.0.0" + "node": "^14.0.0 || ^16.0.0 || >=18.0.0" } }, "node_modules/cypress/node_modules/ansi-styles": { @@ -3027,9 +3033,9 @@ "dev": true }, "node_modules/debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "dependencies": { "ms": "2.1.2" @@ -5102,14 +5108,15 @@ } }, "node_modules/start-server-and-test": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.14.0.tgz", - "integrity": "sha512-on5ELuxO2K0t8EmNj9MtVlFqwBMxfWOhu4U7uZD1xccVpFlOQKR93CSe0u98iQzfNxRyaNTb/CdadbNllplTsw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.15.1.tgz", + "integrity": "sha512-ixhMbUAmym+7k3kqhjhTt6/0eUwE3dbNZPWgcfEUJ5uStaHbT0m8VB+049V5V9X0ueEyxAkwnkkR2SEhCKst5g==", "dev": true, "dependencies": { + "arg": "^5.0.2", "bluebird": "3.7.2", "check-more-types": "2.24.0", - "debug": "4.3.2", + "debug": "4.3.4", "execa": "5.1.1", "lazy-ass": "1.6.0", "ps-tree": "1.2.0", @@ -6947,9 +6954,9 @@ } }, "@cypress/webpack-preprocessor": { - "version": "5.15.5", - "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.5.tgz", - "integrity": "sha512-ZV2ZylabogNDK3+xwDIWswudCJMFDT9XU6tTGni2xWow/brBvI55sEqcjvb6+9x8skMSPM6vLxdvf/FAOmNEFQ==", + "version": "5.15.6", + "resolved": "https://registry.npmjs.org/@cypress/webpack-preprocessor/-/webpack-preprocessor-5.15.6.tgz", + "integrity": "sha512-UCpDxj0PJTenvBJsAuSIyymZWnfvseZHNLbXlMZV+H939dYp7FhAcI58CAwWvjMEu2peQfsFpE+QWrMJvBIobQ==", "dev": true, "requires": { "@babel/parser": "7.13.0", @@ -7401,6 +7408,12 @@ "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==", "dev": true }, + "arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true + }, "asn1": { "version": "0.2.6", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", @@ -7848,9 +7861,9 @@ "dev": true }, "cypress": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz", - "integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-12.0.1.tgz", + "integrity": "sha512-I1Ag5RsPEINfUlQtV6xwkd6ktJuu5QGiKZ3pFa/IXjcyCY6I7CH3gOz0juLOhg/LXOPrQtZH35ulcWDQohyyEA==", "dev": true, "requires": { "@cypress/request": "^2.88.10", @@ -7975,9 +7988,9 @@ "dev": true }, "debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { "ms": "2.1.2" @@ -9571,14 +9584,15 @@ } }, "start-server-and-test": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.14.0.tgz", - "integrity": "sha512-on5ELuxO2K0t8EmNj9MtVlFqwBMxfWOhu4U7uZD1xccVpFlOQKR93CSe0u98iQzfNxRyaNTb/CdadbNllplTsw==", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/start-server-and-test/-/start-server-and-test-1.15.1.tgz", + "integrity": "sha512-ixhMbUAmym+7k3kqhjhTt6/0eUwE3dbNZPWgcfEUJ5uStaHbT0m8VB+049V5V9X0ueEyxAkwnkkR2SEhCKst5g==", "dev": true, "requires": { + "arg": "^5.0.2", "bluebird": "3.7.2", "check-more-types": "2.24.0", - "debug": "4.3.2", + "debug": "4.3.4", "execa": "5.1.1", "lazy-ass": "1.6.0", "ps-tree": "1.2.0", diff --git a/test-e2e/cypress-10/package.json b/test-e2e/cypress-latest/package.json similarity index 81% rename from test-e2e/cypress-10/package.json rename to test-e2e/cypress-latest/package.json index 0dd2aed0..3405983c 100644 --- a/test-e2e/cypress-10/package.json +++ b/test-e2e/cypress-latest/package.json @@ -10,11 +10,11 @@ "test:ci": "start-server-and-test build:serve http-get://localhost:3000 cypress:run" }, "devDependencies": { - "@cypress/webpack-preprocessor": "5.15.5", + "@cypress/webpack-preprocessor": "5.15.6", "babel-loader": "8.3.0", "babel-plugin-module-resolver": "4.1.0", - "cypress": "10.11.0", - "start-server-and-test": "1.14.0", + "cypress": "12.0.1", + "start-server-and-test": "1.15.1", "webpack": "5.75.0" } } diff --git a/test-e2e/cypress-10/src/App.css b/test-e2e/cypress-latest/src/App.css similarity index 100% rename from test-e2e/cypress-10/src/App.css rename to test-e2e/cypress-latest/src/App.css diff --git a/test-e2e/cypress-10/src/App.js b/test-e2e/cypress-latest/src/App.js similarity index 100% rename from test-e2e/cypress-10/src/App.js rename to test-e2e/cypress-latest/src/App.js diff --git a/test-e2e/cypress-10/src/components/cookies-button/CookiesButton.css b/test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.css similarity index 100% rename from test-e2e/cypress-10/src/components/cookies-button/CookiesButton.css rename to test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.css diff --git a/test-e2e/cypress-10/src/components/cookies-button/CookiesButton.js b/test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.js similarity index 100% rename from test-e2e/cypress-10/src/components/cookies-button/CookiesButton.js rename to test-e2e/cypress-latest/src/components/cookies-button/CookiesButton.js diff --git a/test-e2e/cypress-10/src/components/cookies-button/index.js b/test-e2e/cypress-latest/src/components/cookies-button/index.js similarity index 100% rename from test-e2e/cypress-10/src/components/cookies-button/index.js rename to test-e2e/cypress-latest/src/components/cookies-button/index.js diff --git a/test-e2e/cypress-10/src/components/cookies-value/CookiesValue.js b/test-e2e/cypress-latest/src/components/cookies-value/CookiesValue.js similarity index 100% rename from test-e2e/cypress-10/src/components/cookies-value/CookiesValue.js rename to test-e2e/cypress-latest/src/components/cookies-value/CookiesValue.js diff --git a/test-e2e/cypress-10/src/components/cookies-value/index.js b/test-e2e/cypress-latest/src/components/cookies-value/index.js similarity index 100% rename from test-e2e/cypress-10/src/components/cookies-value/index.js rename to test-e2e/cypress-latest/src/components/cookies-value/index.js diff --git a/test-e2e/cypress-10/src/data/user-preferences/actions.js b/test-e2e/cypress-latest/src/data/user-preferences/actions.js similarity index 100% rename from test-e2e/cypress-10/src/data/user-preferences/actions.js rename to test-e2e/cypress-latest/src/data/user-preferences/actions.js diff --git a/test-e2e/cypress-10/src/data/user-preferences/index.js b/test-e2e/cypress-latest/src/data/user-preferences/index.js similarity index 100% rename from test-e2e/cypress-10/src/data/user-preferences/index.js rename to test-e2e/cypress-latest/src/data/user-preferences/index.js diff --git a/test-e2e/cypress-10/src/data/user-preferences/origins.js b/test-e2e/cypress-latest/src/data/user-preferences/origins.js similarity index 100% rename from test-e2e/cypress-10/src/data/user-preferences/origins.js rename to test-e2e/cypress-latest/src/data/user-preferences/origins.js diff --git a/test-e2e/cypress-10/src/data/user-preferences/selectors.js b/test-e2e/cypress-latest/src/data/user-preferences/selectors.js similarity index 100% rename from test-e2e/cypress-10/src/data/user-preferences/selectors.js rename to test-e2e/cypress-latest/src/data/user-preferences/selectors.js diff --git a/test-e2e/cypress-10/src/index.css b/test-e2e/cypress-latest/src/index.css similarity index 100% rename from test-e2e/cypress-10/src/index.css rename to test-e2e/cypress-latest/src/index.css diff --git a/test-e2e/cypress-10/src/index.js b/test-e2e/cypress-latest/src/index.js similarity index 100% rename from test-e2e/cypress-10/src/index.js rename to test-e2e/cypress-latest/src/index.js diff --git a/test-e2e/cypress-10/src/modules/accept-cookies/AcceptCookies.js b/test-e2e/cypress-latest/src/modules/accept-cookies/AcceptCookies.js similarity index 100% rename from test-e2e/cypress-10/src/modules/accept-cookies/AcceptCookies.js rename to test-e2e/cypress-latest/src/modules/accept-cookies/AcceptCookies.js diff --git a/test-e2e/cypress-10/src/modules/accept-cookies/index.js b/test-e2e/cypress-latest/src/modules/accept-cookies/index.js similarity index 100% rename from test-e2e/cypress-10/src/modules/accept-cookies/index.js rename to test-e2e/cypress-latest/src/modules/accept-cookies/index.js diff --git a/test-e2e/cypress-10/src/modules/cookies-value/CookiesValue.js b/test-e2e/cypress-latest/src/modules/cookies-value/CookiesValue.js similarity index 100% rename from test-e2e/cypress-10/src/modules/cookies-value/CookiesValue.js rename to test-e2e/cypress-latest/src/modules/cookies-value/CookiesValue.js diff --git a/test-e2e/cypress-10/src/modules/cookies-value/index.js b/test-e2e/cypress-latest/src/modules/cookies-value/index.js similarity index 100% rename from test-e2e/cypress-10/src/modules/cookies-value/index.js rename to test-e2e/cypress-latest/src/modules/cookies-value/index.js diff --git a/test-e2e/cypress-10/src/modules/localstorage-warning/LocalStorageWarning.css b/test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.css similarity index 100% rename from test-e2e/cypress-10/src/modules/localstorage-warning/LocalStorageWarning.css rename to test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.css diff --git a/test-e2e/cypress-10/src/modules/localstorage-warning/LocalStorageWarning.js b/test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.js similarity index 100% rename from test-e2e/cypress-10/src/modules/localstorage-warning/LocalStorageWarning.js rename to test-e2e/cypress-latest/src/modules/localstorage-warning/LocalStorageWarning.js diff --git a/test-e2e/cypress-10/src/modules/localstorage-warning/index.js b/test-e2e/cypress-latest/src/modules/localstorage-warning/index.js similarity index 100% rename from test-e2e/cypress-10/src/modules/localstorage-warning/index.js rename to test-e2e/cypress-latest/src/modules/localstorage-warning/index.js diff --git a/test-e2e/cypress-10/src/modules/reject-cookies/RejectCookies.js b/test-e2e/cypress-latest/src/modules/reject-cookies/RejectCookies.js similarity index 100% rename from test-e2e/cypress-10/src/modules/reject-cookies/RejectCookies.js rename to test-e2e/cypress-latest/src/modules/reject-cookies/RejectCookies.js diff --git a/test-e2e/cypress-10/src/modules/reject-cookies/index.js b/test-e2e/cypress-latest/src/modules/reject-cookies/index.js similarity index 100% rename from test-e2e/cypress-10/src/modules/reject-cookies/index.js rename to test-e2e/cypress-latest/src/modules/reject-cookies/index.js diff --git a/test-e2e/cypress-typescript/cypress/e2e/cookies.cy.ts b/test-e2e/cypress-typescript/cypress/e2e/cookies.cy.ts index d1ddd435..ef079199 100644 --- a/test-e2e/cypress-typescript/cypress/e2e/cookies.cy.ts +++ b/test-e2e/cypress-typescript/cypress/e2e/cookies.cy.ts @@ -8,11 +8,11 @@ describe("Cookies", () => { LOCALSTORAGE_DISABLED_WARNING: "#localstorage-disabled-warning", }; - describe("when cookies are not accepted", () => { - before(() => { - cy.visit("/"); - }); + beforeEach(() => { + cy.visit("/"); + }); + describe("when cookies are not accepted", () => { it("should display accept cookies button", () => { cy.get(SELECTORS.ACCEPT_BUTTON).should("be.visible"); }); diff --git a/test-e2e/cypress-typescript/cypress/e2e/named-snapshots.cy.ts b/test-e2e/cypress-typescript/cypress/e2e/named-snapshots.cy.ts index d2962075..cab14877 100644 --- a/test-e2e/cypress-typescript/cypress/e2e/named-snapshots.cy.ts +++ b/test-e2e/cypress-typescript/cypress/e2e/named-snapshots.cy.ts @@ -8,8 +8,11 @@ describe("Accept cookies button using named snapshots", () => { cy.clearLocalStorageSnapshot(); }); - it("should be visible", () => { + beforeEach(() => { cy.visit("/"); + }); + + it("should be visible", () => { cy.get(COOKIES_BUTTON).should("be.visible"); cy.saveLocalStorage("cookies-not-accepted"); }); @@ -22,20 +25,20 @@ describe("Accept cookies button using named snapshots", () => { it("should be visible when cookies are not accepted", () => { cy.restoreLocalStorage("cookies-not-accepted"); - cy.visit("/"); + cy.reload(); cy.get(COOKIES_BUTTON).should("be.visible"); }); it("should not be visible when cookies are accepted", () => { cy.restoreLocalStorage("cookies-accepted"); - cy.visit("/"); + cy.reload(); cy.get(COOKIES_BUTTON).should("not.exist"); }); it("should be visible after clearing localStorage snapshot", () => { cy.clearLocalStorageSnapshot("cookies-accepted"); cy.restoreLocalStorage("cookies-accepted"); - cy.visit("/"); + cy.reload(); cy.get(COOKIES_BUTTON).should("be.visible"); }); }); diff --git a/test-e2e/cypress-typescript/package-lock.json b/test-e2e/cypress-typescript/package-lock.json index f2446eaf..1105012c 100644 --- a/test-e2e/cypress-typescript/package-lock.json +++ b/test-e2e/cypress-typescript/package-lock.json @@ -8,10 +8,10 @@ "name": "app-typescript-tests", "version": "1.0.0", "devDependencies": { - "@typescript-eslint/eslint-plugin": "5.43.0", - "@typescript-eslint/parser": "5.43.0", - "cypress": "10.11.0", - "eslint": "8.28.0", + "@typescript-eslint/eslint-plugin": "5.45.0", + "@typescript-eslint/parser": "5.45.0", + "cypress": "12.0.1", + "eslint": "8.29.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-prettier": "4.2.1", "start-server-and-test": "1.14.0", @@ -234,14 +234,14 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.43.0.tgz", - "integrity": "sha512-wNPzG+eDR6+hhW4yobEmpR36jrqqQv1vxBq5LJO3fBAktjkvekfr4BRl+3Fn1CM/A+s8/EiGUbOMDoYqWdbtXA==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.45.0.tgz", + "integrity": "sha512-CXXHNlf0oL+Yg021cxgOdMHNTXD17rHkq7iW6RFHoybdFgQBjU3yIXhhcPpGwr1CjZlo6ET8C6tzX5juQoXeGA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.43.0", - "@typescript-eslint/type-utils": "5.43.0", - "@typescript-eslint/utils": "5.43.0", + "@typescript-eslint/scope-manager": "5.45.0", + "@typescript-eslint/type-utils": "5.45.0", + "@typescript-eslint/utils": "5.45.0", "debug": "^4.3.4", "ignore": "^5.2.0", "natural-compare-lite": "^1.4.0", @@ -284,14 +284,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.43.0.tgz", - "integrity": "sha512-2iHUK2Lh7PwNUlhFxxLI2haSDNyXvebBO9izhjhMoDC+S3XI9qt2DGFUsiJ89m2k7gGYch2aEpYqV5F/+nwZug==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.45.0.tgz", + "integrity": "sha512-brvs/WSM4fKUmF5Ot/gEve6qYiCMjm6w4HkHPfS6ZNmxTS0m0iNN4yOChImaCkqc1hRwFGqUyanMXuGal6oyyQ==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.43.0", - "@typescript-eslint/types": "5.43.0", - "@typescript-eslint/typescript-estree": "5.43.0", + "@typescript-eslint/scope-manager": "5.45.0", + "@typescript-eslint/types": "5.45.0", + "@typescript-eslint/typescript-estree": "5.45.0", "debug": "^4.3.4" }, "engines": { @@ -328,13 +328,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.43.0.tgz", - "integrity": "sha512-XNWnGaqAtTJsUiZaoiGIrdJYHsUOd3BZ3Qj5zKp9w6km6HsrjPk/TGZv0qMTWyWj0+1QOqpHQ2gZOLXaGA9Ekw==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.45.0.tgz", + "integrity": "sha512-noDMjr87Arp/PuVrtvN3dXiJstQR1+XlQ4R1EvzG+NMgXi8CuMCXpb8JqNtFHKceVSQ985BZhfRdowJzbv4yKw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.43.0", - "@typescript-eslint/visitor-keys": "5.43.0" + "@typescript-eslint/types": "5.45.0", + "@typescript-eslint/visitor-keys": "5.45.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -345,13 +345,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.43.0.tgz", - "integrity": "sha512-K21f+KY2/VvYggLf5Pk4tgBOPs2otTaIHy2zjclo7UZGLyFH86VfUOm5iq+OtDtxq/Zwu2I3ujDBykVW4Xtmtg==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.45.0.tgz", + "integrity": "sha512-DY7BXVFSIGRGFZ574hTEyLPRiQIvI/9oGcN8t1A7f6zIs6ftbrU0nhyV26ZW//6f85avkwrLag424n+fkuoJ1Q==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.43.0", - "@typescript-eslint/utils": "5.43.0", + "@typescript-eslint/typescript-estree": "5.45.0", + "@typescript-eslint/utils": "5.45.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -389,9 +389,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.43.0.tgz", - "integrity": "sha512-jpsbcD0x6AUvV7tyOlyvon0aUsQpF8W+7TpJntfCUWU1qaIKu2K34pMwQKSzQH8ORgUrGYY6pVIh1Pi8TNeteg==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.45.0.tgz", + "integrity": "sha512-QQij+u/vgskA66azc9dCmx+rev79PzX8uDHpsqSjEFtfF2gBUTRCpvYMh2gw2ghkJabNkPlSUCimsyBEQZd1DA==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -402,13 +402,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.43.0.tgz", - "integrity": "sha512-BZ1WVe+QQ+igWal2tDbNg1j2HWUkAa+CVqdU79L4HP9izQY6CNhXfkNwd1SS4+sSZAP/EthI1uiCSY/+H0pROg==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.45.0.tgz", + "integrity": "sha512-maRhLGSzqUpFcZgXxg1qc/+H0bT36lHK4APhp0AEUVrpSwXiRAomm/JGjSG+kNUio5kAa3uekCYu/47cnGn5EQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.43.0", - "@typescript-eslint/visitor-keys": "5.43.0", + "@typescript-eslint/types": "5.45.0", + "@typescript-eslint/visitor-keys": "5.45.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -446,16 +446,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.43.0.tgz", - "integrity": "sha512-8nVpA6yX0sCjf7v/NDfeaOlyaIIqL7OaIGOWSPFqUKK59Gnumd3Wa+2l8oAaYO2lk0sO+SbWFWRSvhu8gLGv4A==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.45.0.tgz", + "integrity": "sha512-OUg2JvsVI1oIee/SwiejTot2OxwU8a7UfTFMOdlhD2y+Hl6memUSL4s98bpUTo8EpVEr0lmwlU7JSu/p2QpSvA==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.43.0", - "@typescript-eslint/types": "5.43.0", - "@typescript-eslint/typescript-estree": "5.43.0", + "@typescript-eslint/scope-manager": "5.45.0", + "@typescript-eslint/types": "5.45.0", + "@typescript-eslint/typescript-estree": "5.45.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0", "semver": "^7.3.7" @@ -472,12 +472,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.43.0.tgz", - "integrity": "sha512-icl1jNH/d18OVHLfcwdL3bWUKsBeIiKYTGxMJCoGe7xFht+E4QgzOqoWYrU8XSLJWhVw8nTacbm03v23J/hFTg==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.45.0.tgz", + "integrity": "sha512-jc6Eccbn2RtQPr1s7th6jJWQHBHI6GBVQkCHoJFQ5UreaKm59Vxw+ynQUPPY2u2Amquc+7tmEoC2G52ApsGNNg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.43.0", + "@typescript-eslint/types": "5.45.0", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -1014,9 +1014,9 @@ } }, "node_modules/cypress": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz", - "integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-12.0.1.tgz", + "integrity": "sha512-I1Ag5RsPEINfUlQtV6xwkd6ktJuu5QGiKZ3pFa/IXjcyCY6I7CH3gOz0juLOhg/LXOPrQtZH35ulcWDQohyyEA==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -1067,7 +1067,7 @@ "cypress": "bin/cypress" }, "engines": { - "node": ">=12.0.0" + "node": "^14.0.0 || ^16.0.0 || >=18.0.0" } }, "node_modules/dashdash": { @@ -1197,9 +1197,9 @@ } }, "node_modules/eslint": { - "version": "8.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz", - "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==", + "version": "8.29.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz", + "integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==", "dev": true, "dependencies": { "@eslint/eslintrc": "^1.3.3", @@ -3635,14 +3635,14 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.43.0.tgz", - "integrity": "sha512-wNPzG+eDR6+hhW4yobEmpR36jrqqQv1vxBq5LJO3fBAktjkvekfr4BRl+3Fn1CM/A+s8/EiGUbOMDoYqWdbtXA==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.45.0.tgz", + "integrity": "sha512-CXXHNlf0oL+Yg021cxgOdMHNTXD17rHkq7iW6RFHoybdFgQBjU3yIXhhcPpGwr1CjZlo6ET8C6tzX5juQoXeGA==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.43.0", - "@typescript-eslint/type-utils": "5.43.0", - "@typescript-eslint/utils": "5.43.0", + "@typescript-eslint/scope-manager": "5.45.0", + "@typescript-eslint/type-utils": "5.45.0", + "@typescript-eslint/utils": "5.45.0", "debug": "^4.3.4", "ignore": "^5.2.0", "natural-compare-lite": "^1.4.0", @@ -3663,14 +3663,14 @@ } }, "@typescript-eslint/parser": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.43.0.tgz", - "integrity": "sha512-2iHUK2Lh7PwNUlhFxxLI2haSDNyXvebBO9izhjhMoDC+S3XI9qt2DGFUsiJ89m2k7gGYch2aEpYqV5F/+nwZug==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.45.0.tgz", + "integrity": "sha512-brvs/WSM4fKUmF5Ot/gEve6qYiCMjm6w4HkHPfS6ZNmxTS0m0iNN4yOChImaCkqc1hRwFGqUyanMXuGal6oyyQ==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.43.0", - "@typescript-eslint/types": "5.43.0", - "@typescript-eslint/typescript-estree": "5.43.0", + "@typescript-eslint/scope-manager": "5.45.0", + "@typescript-eslint/types": "5.45.0", + "@typescript-eslint/typescript-estree": "5.45.0", "debug": "^4.3.4" }, "dependencies": { @@ -3686,23 +3686,23 @@ } }, "@typescript-eslint/scope-manager": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.43.0.tgz", - "integrity": "sha512-XNWnGaqAtTJsUiZaoiGIrdJYHsUOd3BZ3Qj5zKp9w6km6HsrjPk/TGZv0qMTWyWj0+1QOqpHQ2gZOLXaGA9Ekw==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.45.0.tgz", + "integrity": "sha512-noDMjr87Arp/PuVrtvN3dXiJstQR1+XlQ4R1EvzG+NMgXi8CuMCXpb8JqNtFHKceVSQ985BZhfRdowJzbv4yKw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.43.0", - "@typescript-eslint/visitor-keys": "5.43.0" + "@typescript-eslint/types": "5.45.0", + "@typescript-eslint/visitor-keys": "5.45.0" } }, "@typescript-eslint/type-utils": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.43.0.tgz", - "integrity": "sha512-K21f+KY2/VvYggLf5Pk4tgBOPs2otTaIHy2zjclo7UZGLyFH86VfUOm5iq+OtDtxq/Zwu2I3ujDBykVW4Xtmtg==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.45.0.tgz", + "integrity": "sha512-DY7BXVFSIGRGFZ574hTEyLPRiQIvI/9oGcN8t1A7f6zIs6ftbrU0nhyV26ZW//6f85avkwrLag424n+fkuoJ1Q==", "dev": true, "requires": { - "@typescript-eslint/typescript-estree": "5.43.0", - "@typescript-eslint/utils": "5.43.0", + "@typescript-eslint/typescript-estree": "5.45.0", + "@typescript-eslint/utils": "5.45.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -3719,19 +3719,19 @@ } }, "@typescript-eslint/types": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.43.0.tgz", - "integrity": "sha512-jpsbcD0x6AUvV7tyOlyvon0aUsQpF8W+7TpJntfCUWU1qaIKu2K34pMwQKSzQH8ORgUrGYY6pVIh1Pi8TNeteg==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.45.0.tgz", + "integrity": "sha512-QQij+u/vgskA66azc9dCmx+rev79PzX8uDHpsqSjEFtfF2gBUTRCpvYMh2gw2ghkJabNkPlSUCimsyBEQZd1DA==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.43.0.tgz", - "integrity": "sha512-BZ1WVe+QQ+igWal2tDbNg1j2HWUkAa+CVqdU79L4HP9izQY6CNhXfkNwd1SS4+sSZAP/EthI1uiCSY/+H0pROg==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.45.0.tgz", + "integrity": "sha512-maRhLGSzqUpFcZgXxg1qc/+H0bT36lHK4APhp0AEUVrpSwXiRAomm/JGjSG+kNUio5kAa3uekCYu/47cnGn5EQ==", "dev": true, "requires": { - "@typescript-eslint/types": "5.43.0", - "@typescript-eslint/visitor-keys": "5.43.0", + "@typescript-eslint/types": "5.45.0", + "@typescript-eslint/visitor-keys": "5.45.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -3751,28 +3751,28 @@ } }, "@typescript-eslint/utils": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.43.0.tgz", - "integrity": "sha512-8nVpA6yX0sCjf7v/NDfeaOlyaIIqL7OaIGOWSPFqUKK59Gnumd3Wa+2l8oAaYO2lk0sO+SbWFWRSvhu8gLGv4A==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.45.0.tgz", + "integrity": "sha512-OUg2JvsVI1oIee/SwiejTot2OxwU8a7UfTFMOdlhD2y+Hl6memUSL4s98bpUTo8EpVEr0lmwlU7JSu/p2QpSvA==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.43.0", - "@typescript-eslint/types": "5.43.0", - "@typescript-eslint/typescript-estree": "5.43.0", + "@typescript-eslint/scope-manager": "5.45.0", + "@typescript-eslint/types": "5.45.0", + "@typescript-eslint/typescript-estree": "5.45.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0", "semver": "^7.3.7" } }, "@typescript-eslint/visitor-keys": { - "version": "5.43.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.43.0.tgz", - "integrity": "sha512-icl1jNH/d18OVHLfcwdL3bWUKsBeIiKYTGxMJCoGe7xFht+E4QgzOqoWYrU8XSLJWhVw8nTacbm03v23J/hFTg==", + "version": "5.45.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.45.0.tgz", + "integrity": "sha512-jc6Eccbn2RtQPr1s7th6jJWQHBHI6GBVQkCHoJFQ5UreaKm59Vxw+ynQUPPY2u2Amquc+7tmEoC2G52ApsGNNg==", "dev": true, "requires": { - "@typescript-eslint/types": "5.43.0", + "@typescript-eslint/types": "5.45.0", "eslint-visitor-keys": "^3.3.0" } }, @@ -4152,9 +4152,9 @@ } }, "cypress": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-10.11.0.tgz", - "integrity": "sha512-lsaE7dprw5DoXM00skni6W5ElVVLGAdRUUdZjX2dYsGjbY/QnpzWZ95Zom1mkGg0hAaO/QVTZoFVS7Jgr/GUPA==", + "version": "12.0.1", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-12.0.1.tgz", + "integrity": "sha512-I1Ag5RsPEINfUlQtV6xwkd6ktJuu5QGiKZ3pFa/IXjcyCY6I7CH3gOz0juLOhg/LXOPrQtZH35ulcWDQohyyEA==", "dev": true, "requires": { "@cypress/request": "^2.88.10", @@ -4302,9 +4302,9 @@ "dev": true }, "eslint": { - "version": "8.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz", - "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==", + "version": "8.29.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz", + "integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==", "dev": true, "requires": { "@eslint/eslintrc": "^1.3.3", diff --git a/test-e2e/cypress-typescript/package.json b/test-e2e/cypress-typescript/package.json index 5831419f..72576f47 100644 --- a/test-e2e/cypress-typescript/package.json +++ b/test-e2e/cypress-typescript/package.json @@ -15,10 +15,10 @@ "test:ci": "npm run copy:library && npm run build-and-serve-and-cypress" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "5.43.0", - "@typescript-eslint/parser": "5.43.0", - "cypress": "10.11.0", - "eslint": "8.28.0", + "@typescript-eslint/eslint-plugin": "5.45.0", + "@typescript-eslint/parser": "5.45.0", + "cypress": "12.0.1", + "eslint": "8.29.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-prettier": "4.2.1", "start-server-and-test": "1.14.0", diff --git a/test-e2e/specs/cypress/e2e/cookies.cy.js b/test-e2e/specs/cypress/e2e/cookies.cy.js index 507fe83b..82c19def 100644 --- a/test-e2e/specs/cypress/e2e/cookies.cy.js +++ b/test-e2e/specs/cypress/e2e/cookies.cy.js @@ -5,6 +5,10 @@ describe("Cookies", () => { LOCALSTORAGE_DISABLED_WARNING: "#localstorage-disabled-warning", }; + beforeEach(() => { + cy.visit("/"); + }); + describe("when cookies are not accepted", () => { before(() => { cy.visit("/"); @@ -23,7 +27,6 @@ describe("Cookies", () => { }); it("should accept cookies button after reloading page", () => { - cy.reload(); cy.getLocalStorage("cookies-accepted").should("not.exist"); cy.get(SELECTORS.ACCEPT_BUTTON).should("be.visible"); }); diff --git a/test-e2e/specs/cypress/e2e/named-snapshots.cy.js b/test-e2e/specs/cypress/e2e/named-snapshots.cy.js index 7bace063..f9a903a3 100644 --- a/test-e2e/specs/cypress/e2e/named-snapshots.cy.js +++ b/test-e2e/specs/cypress/e2e/named-snapshots.cy.js @@ -3,10 +3,14 @@ describe("Accept cookies button using named snapshots", () => { before(() => { cy.clearLocalStorageSnapshot(); + cy.visit("/"); }); - it("should be visible", () => { + beforeEach(() => { cy.visit("/"); + }); + + it("should be visible", () => { cy.get(COOKIES_BUTTON).should("be.visible"); cy.saveLocalStorage("cookies-not-accepted"); }); @@ -19,20 +23,20 @@ describe("Accept cookies button using named snapshots", () => { it("should be visible when cookies are not accepted", () => { cy.restoreLocalStorage("cookies-not-accepted"); - cy.visit("/"); + cy.reload(); cy.get(COOKIES_BUTTON).should("be.visible"); }); it("should not be visible when cookies are accepted", () => { cy.restoreLocalStorage("cookies-accepted"); - cy.visit("/"); + cy.reload(); cy.get(COOKIES_BUTTON).should("not.exist"); }); it("should be visible after clearing localStorage snapshot", () => { cy.clearLocalStorageSnapshot("cookies-accepted"); cy.restoreLocalStorage("cookies-accepted"); - cy.visit("/"); + cy.reload(); cy.get(COOKIES_BUTTON).should("be.visible"); }); });