1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-24 08:22:29 +02:00
focalboard/webapp
kamre a498149a76
[GH-42] Cypress tests for login actions (#1679)
* Testing API added to server:
 - registered only if `enableTestingAPI` is set to `true` in the config file
 - has only one route `test/reset`
 - reset clears the tables in db for blocks, users, sessions
 - functions `DeleteAllBlocks` and `DeleteAllUsers` added to `Store` interface
 - new functions implemented for `SQLStore`

* Cypress tests (initial version) for login actions added:

  - redirect to login page,
  - register user,
  - test for loading home page deleted,
  - allow js in `tsconfig.json` for cypress tests.

* Cypress tests for login actions:

  - check that main page with workspace is visible after registration,
  - initial version of test for login of register user.

* Cypress tests for login actions:

  - function for checking that workspace is available added,
  - functions for login and logout added,
  - test for password change added,
  - session parameters added to server config for cypress testing.

* Switch Cypress tests to typescript.

* Use ids for inputs instead of placeholder text.

* Use cypress request for login without loading login page.

* Cypress custom command for login added.

* Cypress tests fixed:
 - new cypress commands for server reset, register/login user
 - single test for "create and delete board/card"
 - fixes for `BoardPage` component useEffect callbacks
 - npm script `runserver-test` doesn't use single user mode

* Deletion of all blocks changed:
 - also deletes blocks from history
 - public function renamed to DeleteAllBlocksPermanently
 - code for mocks and public methods generated

* Server tests for files fixed on windows.

* Cypress tests for the registration of second user via invite link added.

* Added `baseUrl` in main `tsconfig.json` (required by cypress configuration).

* Cypress test fixed. Comments as well as log messages added.

* Log a message if testing API is enabled.

* Single cypress test for register/login actions.

* Revert changes to server.

* More convenient cypress commands:
  - all API calls made as separate commands
  - declarations for commands moved to separate global.d.ts file
  - utility functions moved after test actions in 'Login actions' test
2021-11-22 16:59:01 +01:00
..
__mocks__ Write Unit Test for emptyCenterPanel.tsx and welcomePage.tsx (#1621) 2021-10-25 11:44:46 -04:00
cypress [GH-42] Cypress tests for login actions (#1679) 2021-11-22 16:59:01 +01:00
html-templates Adding support for embed the webapp into the plugin (#597) 2021-07-29 20:08:39 +02:00
i18n Translated using Weblate (Italian) 2021-11-15 17:41:51 -05:00
src [GH-42] Cypress tests for login actions (#1679) 2021-11-22 16:59:01 +01:00
static Updating splash screen sizing for image and content (#1399) 2021-10-04 16:58:56 -04:00
.eslintignore Move package.json and webpack to under webapp 2020-10-20 11:48:08 -07:00
.eslintrc.json Refactor: card contentOrder 2020-12-18 12:52:45 -08:00
.nvmrc docker: fix docker file image and apply some good practices (#552) 2021-07-01 11:46:03 +02:00
.prettierignore Add prettier at least for css (#327) 2021-04-28 16:28:52 +02:00
.prettierrc.json Add prettier at least for css (#327) 2021-04-28 16:28:52 +02:00
.stylelintrc.json Add stylelint to the CI (#1078) 2021-08-26 11:25:25 +02:00
cypress.json [GH-42] Cypress tests for login actions (#1679) 2021-11-22 16:59:01 +01:00
NOTICE.txt [GH-38] Add date property (#391) 2021-05-10 07:46:07 +02:00
package-lock.json Update to v0.10 (#1633) 2021-10-22 13:59:05 -07:00
package.json [GH-42] Cypress tests for login actions (#1679) 2021-11-22 16:59:01 +01:00
tsconfig.json [GH-42] Cypress tests for login actions (#1679) 2021-11-22 16:59:01 +01:00
tslint.json Move package.json and webpack to under webapp 2020-10-20 11:48:08 -07:00
webpack.common.js Start Welcome Page (#1231) 2021-09-28 09:51:32 -04:00
webpack.dev.js Introduce checkbox property type (#439) 2021-06-02 15:53:52 +05:30
webpack.prod.js Use cross-env instead of win-node-env (#656) 2021-07-15 19:30:22 -07:00