diff --git a/tests/cypress/integration/login.js b/tests/cypress/integration/login.js index 6439d20d3..4741e856e 100644 --- a/tests/cypress/integration/login.js +++ b/tests/cypress/integration/login.js @@ -57,9 +57,7 @@ context("Login tests", () => { }); context("Successful logout", () => { - it("logs out", () => { - Cypress.currentTest.retries(3); - + it("logs out", {retries: 3}, () => { // login login(username, password); diff --git a/tests/cypress/package-lock.json b/tests/cypress/package-lock.json index a55458f8e..c737b8a97 100644 --- a/tests/cypress/package-lock.json +++ b/tests/cypress/package-lock.json @@ -12,7 +12,6 @@ "cypress": "^9.4.1", "cypress-commands": "^1.1.0", "cypress-file-upload": "^4.0.7", - "cypress-plugin-retries": "^1.5.2", "cypress-terminal-report": "^1.4.1", "cypress-wait-until": "^1.7.1", "ini": "^2.0.0" @@ -538,26 +537,6 @@ "cypress": ">3.0.0" } }, - "node_modules/cypress-plugin-retries": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/cypress-plugin-retries/-/cypress-plugin-retries-1.5.2.tgz", - "integrity": "sha512-o1xVIGtv4WvNVxoVJ2X08eAuvditPHrePRzHqhwwHbMKu3C2rtxCdanRCZdO5fjh8ww+q4v4V0e9GmysbOvu3A==", - "dependencies": { - "chalk": "^3.0.0" - } - }, - "node_modules/cypress-plugin-retries/node_modules/chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/cypress-terminal-report": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/cypress-terminal-report/-/cypress-terminal-report-1.4.2.tgz", @@ -2132,25 +2111,6 @@ "mime": "^2.4.4" } }, - "cypress-plugin-retries": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/cypress-plugin-retries/-/cypress-plugin-retries-1.5.2.tgz", - "integrity": "sha512-o1xVIGtv4WvNVxoVJ2X08eAuvditPHrePRzHqhwwHbMKu3C2rtxCdanRCZdO5fjh8ww+q4v4V0e9GmysbOvu3A==", - "requires": { - "chalk": "^3.0.0" - }, - "dependencies": { - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - } - } - }, "cypress-terminal-report": { "version": "1.4.2", "resolved": "https://registry.npmjs.org/cypress-terminal-report/-/cypress-terminal-report-1.4.2.tgz", diff --git a/tests/cypress/package.json b/tests/cypress/package.json index a3300df14..c31141db8 100644 --- a/tests/cypress/package.json +++ b/tests/cypress/package.json @@ -20,7 +20,6 @@ "cypress": "^9.4.1", "cypress-commands": "^1.1.0", "cypress-file-upload": "^4.0.7", - "cypress-plugin-retries": "^1.5.2", "cypress-terminal-report": "^1.4.1", "cypress-wait-until": "^1.7.1", "ini": "^2.0.0" diff --git a/tests/cypress/plugins/index.js b/tests/cypress/plugins/index.js index 73a31e2fd..f8c2174ba 100644 --- a/tests/cypress/plugins/index.js +++ b/tests/cypress/plugins/index.js @@ -19,5 +19,4 @@ module.exports = (on, config) => { // `on` is used to hook into various events Cypress emits // `config` is the resolved Cypress config require("cypress-terminal-report/src/installLogsPrinter")(on); - require("cypress-plugin-retries/lib/plugin")(on); }; diff --git a/tests/cypress/support/index.js b/tests/cypress/support/index.js index 83db57da2..2dfa8fcec 100644 --- a/tests/cypress/support/index.js +++ b/tests/cypress/support/index.js @@ -21,4 +21,3 @@ import "./commands"; require("cypress-terminal-report/src/installLogsCollector")(); require("cypress-commands"); -require("cypress-plugin-retries");