diff --git a/src/package-lock.json b/src/package-lock.json index 26c65378b..a507d27af 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -1808,11 +1808,28 @@ } }, "eslint-config-etherpad": { - "version": "1.0.25", - "resolved": "https://registry.npmjs.org/eslint-config-etherpad/-/eslint-config-etherpad-1.0.25.tgz", - "integrity": "sha512-KYTGf08dlwvsg05Y2hm0zurCwVMyZrsxGRnPEhL2wclk26xhnPYfNfruQQqk7nghfWFLrAL+VscnkZLCQEPBXQ==", + "version": "1.0.26", + "resolved": "https://registry.npmjs.org/eslint-config-etherpad/-/eslint-config-etherpad-1.0.26.tgz", + "integrity": "sha512-xPnDnJIpQuYJNRYGIHIucct0U6CtciyZKItpet+NqoGJgxUMkwAXgD5bzuXQvd9u4I2aj/kRU1BIL2DbAGe+pA==", "dev": true }, + "eslint-plugin-cypress": { + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.11.2.tgz", + "integrity": "sha512-1SergF1sGbVhsf7MYfOLiBhdOg6wqyeV9pXUAIDIffYTGMN3dTBQS9nFAzhLsHhO+Bn0GaVM1Ecm71XUidQ7VA==", + "dev": true, + "requires": { + "globals": "^11.12.0" + }, + "dependencies": { + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + } + } + }, "eslint-plugin-es": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz", diff --git a/src/package.json b/src/package.json index 1a0eb74d4..e1af8a4bd 100644 --- a/src/package.json +++ b/src/package.json @@ -79,7 +79,8 @@ }, "devDependencies": { "eslint": "^7.20.0", - "eslint-config-etherpad": "^1.0.25", + "eslint-config-etherpad": "^1.0.26", + "eslint-plugin-cypress": "^2.11.2", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-mocha": "^8.0.0", "eslint-plugin-node": "^11.1.0", @@ -155,9 +156,10 @@ ], "excludedFiles": [ "**/.eslintrc.js", - "tests/frontend/travis/**/*", + "tests/frontend/cypress/**/*", "tests/frontend/helper.js", "tests/frontend/helper/**/*", + "tests/frontend/travis/**/*", "tests/ratelimit/**/*" ], "extends": "etherpad/tests", @@ -195,6 +197,7 @@ ], "excludedFiles": [ "**/.eslintrc.js", + "tests/frontend/cypress/**/*", "tests/frontend/helper.js", "tests/frontend/helper/**/*", "tests/frontend/travis/**/*" @@ -215,6 +218,12 @@ } ] }, + { + "files": [ + "tests/frontend/cypress/**/*" + ], + "extends": "etherpad/tests/cypress" + }, { "files": [ "tests/frontend/travis/**/*" diff --git a/src/tests/frontend/cypress/integration/test.js b/src/tests/frontend/cypress/integration/test.js index 300a555d5..6574696db 100644 --- a/src/tests/frontend/cypress/integration/test.js +++ b/src/tests/frontend/cypress/integration/test.js @@ -8,7 +8,7 @@ Cypress.Commands.add('iframe', {prevSubject: 'element'}, })); describe(__filename, () => { - it('Pad content exists', async () => { + it('Pad content exists', () => { cy.visit('http://127.0.0.1:9001/p/test'); cy.get('iframe[name="ace_outer"]', {timeout: 10000}).iframe() .find('.line-number:first')