From 9fbae87169cfb9cd2ac581f18aa13d34b44cde3c Mon Sep 17 00:00:00 2001 From: Kylart Date: Fri, 10 Aug 2018 08:39:38 +0200 Subject: [PATCH] Implemented cypress configuration along with a simple test --- .eslintrc.js | 2 +- .gitignore | 1 + app/web/assets/improvements.todo | 14 ++++++++++++++ cypress.json | 16 ++++++++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 app/web/assets/improvements.todo create mode 100644 cypress.json diff --git a/.eslintrc.js b/.eslintrc.js index 947be40..18221f6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,4 +7,4 @@ module.exports = { parser: 'babel-eslint', ecmaVersion: 2017 } -}; +} diff --git a/.gitignore b/.gitignore index f9d6e94..872a6d9 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ selenium-debug.log coverage.lcov /coverage/ screenshots +cypress diff --git a/app/web/assets/improvements.todo b/app/web/assets/improvements.todo new file mode 100644 index 0000000..cef6751 --- /dev/null +++ b/app/web/assets/improvements.todo @@ -0,0 +1,14 @@ +✔ Finish info modal design @done (8/16/2017, 6:48:22 PM) +✔ Implement auto-update on start and every hour @done (9/3/2017, 4:02:49 PM) +✔ Separate Store modules @done (2017-9-20 11:20:12) +✔ Use Pug for all templates @done (8/14/2017, 6:58:43 PM) +✔ Implement sound on notification @done (8/14/2017, 10:28:04 PM) +✔ Open in browser not working on Linux and Windows @done (9/4/2017, 11:37:15 PM) +✔ Responsive (large screen) season page @done (9/4/2017, 11:43:47 PM) +✔ Message on empty history @done (9/4/2017, 11:49:25 PM) +✔ Can't minimize when maximized on windows and Linux @done (9/4/2017, 11:53:52 PM) +✔ Inside news open several times @done (9/6/2017, 10:30:00 PM) +✘ Fallback folder if default local folder was deleted @cancelled (2018-5-20 19:35:38) +✔ Downloader broken with Erai-raws. Some improvements are needed with this sub @done (2018-5-20 19:35:19) +✔ Don't show the downloader modal if there is no magnet to show @done (2017-9-25 10:53:14) +✔ Save the release entries to put it back if an error occurs on refresh (#27) @done (2018-5-20 19:35:16) diff --git a/cypress.json b/cypress.json new file mode 100644 index 0000000..259c5a9 --- /dev/null +++ b/cypress.json @@ -0,0 +1,16 @@ +{ + "env": { + "KAWANIME_SERVER": true, + "NODE_ENV": "KawAnime-test", + "PORT": 8080 + }, + "fixturesFolder": "test/cypress/fixtures", + "integrationFolder": "test/cypress/integration", + "pluginsFolder": "test/cypress/plugins", + "screenshotsFolder": "test/cypress/screenshots", + "videosFolder": "test/cypress/videos", + "supportFile": "test/cypress/support", + "baseUrl": "http://localhost:8080", + "viewportHeight": 800, + "viewportWidth": 1200 +}