From 6d210220be0875d63461829d83c6e3a59d05cf7a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Sep 2021 10:27:04 +0200 Subject: Fix NSFW filter and add tests --- support/doc/development/tests.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'support/doc/development') diff --git a/support/doc/development/tests.md b/support/doc/development/tests.md index e311d3267..fb3a05326 100644 --- a/support/doc/development/tests.md +++ b/support/doc/development/tests.md @@ -70,3 +70,18 @@ To run tests on browser stack: ``` $ BROWSERSTACK_USER=your_user BROWSERSTACK_KEY=your_key npm run e2e:browserstack ``` + +### Add E2E tests + +To add E2E tests and quickly run tests using a local Chrome, first create a test instance: + +``` +$ npm run clean:server:test && NODE_APP_INSTANCE=1 NODE_ENV=test npm start +``` + +Then, just run your suite using: + +``` +$ cd client/e2e +$ ../node_modules/.bin/wdio wdio.local-test.conf.ts # you can also add --mochaOpts.grep to only run tests you want +``` -- cgit v1.2.3