From ef1916d1d7bac943539e5e1574315324179860f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Doreau?= Date: Thu, 13 May 2021 18:44:23 +0200 Subject: [PATCH] feat(app): update e2e tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Doreau --- packages/app/cypress.json | 4 +- packages/app/cypress/.eslintrc.json | 11 +- .../fixtures/techdocs/components/default.html | 6 +- .../fixtures/techdocs/components/roadmap.html | 46 +++- .../app/cypress/integration/techdocs.spec.js | 121 ----------- .../integration/techdocs/techdocs.spec.js | 202 ++++++++++++++++++ .../integration/{ => user}/login.spec.js | 0 .../cypress/integration/user/logout.spec.js | 33 +++ packages/app/cypress/support/commands.js | 21 +- 9 files changed, 300 insertions(+), 144 deletions(-) delete mode 100644 packages/app/cypress/integration/techdocs.spec.js create mode 100644 packages/app/cypress/integration/techdocs/techdocs.spec.js rename packages/app/cypress/integration/{ => user}/login.spec.js (100%) create mode 100644 packages/app/cypress/integration/user/logout.spec.js diff --git a/packages/app/cypress.json b/packages/app/cypress.json index 6ae1ae6026..6c4e2658ca 100644 --- a/packages/app/cypress.json +++ b/packages/app/cypress.json @@ -1,4 +1,6 @@ { "baseUrl": "http://localhost:3000", - "pluginsFile": false + "pluginsFile": false, + "viewportHeight": 900, + "viewportWidth": 1440 } diff --git a/packages/app/cypress/.eslintrc.json b/packages/app/cypress/.eslintrc.json index 2b3a458b95..b7b7a349f9 100644 --- a/packages/app/cypress/.eslintrc.json +++ b/packages/app/cypress/.eslintrc.json @@ -17,5 +17,14 @@ "bundledDependencies": true } ] - } + }, + "overrides": [ + { + "files": ["*.spec.js"], + "rules": { + "jest/valid-expect": 0, + "jest/expect-expect": 0 + } + } + ] } diff --git a/packages/app/cypress/fixtures/techdocs/components/default.html b/packages/app/cypress/fixtures/techdocs/components/default.html index a09a5c9293..e49e59a0f5 100644 --- a/packages/app/cypress/fixtures/techdocs/components/default.html +++ b/packages/app/cypress/fixtures/techdocs/components/default.html @@ -219,7 +219,10 @@