focalboard/webapp/src
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
..
blocks Update icons (#1796) 2021-11-11 14:57:05 -07:00
components GH-1519 - Fixing color on template picker (#1829) 2021-11-16 07:43:19 -05:00
config Create FeatureFlags in configurations (#1622) 2021-11-01 19:12:43 -06:00
fonts/metropolis Not importing compass-icons on plugin mode (#1184) 2021-09-10 22:31:53 +02:00
hooks Typing adjustment - 1353 (#1415) 2021-10-05 16:55:55 -06:00
pages [GH-42] Cypress tests for login actions (#1679) 2021-11-22 16:59:01 +01:00
store Fixed sort by date (#1719) 2021-11-09 15:39:04 -05:00
styles Fixing styles on product switcher menu (#1783) 2021-11-09 13:42:19 -07:00
svg GH-1362: Fix missing return type on function (#1375) 2021-09-29 17:58:36 -06:00
telemetry Update telemetry (#1673) 2021-10-27 09:30:42 -07:00
test [GH-838]Created unit tests for /webapp/src/components/viewMenu.tsx (#1648) 2021-10-26 20:02:14 +02:00
types Some webapp linter fixes (#1405) 2021-10-16 18:36:03 +02:00
widgets [GH-1655] Card Delete : added Confirmation Dialog (#1684) 2021-11-11 15:03:28 -07:00
app.tsx Only allow routes without workspace prefix if you are in non-plugin mode (#1786) 2021-11-10 18:18:02 +01:00
archiver.ts Some webapp linter fixes (#1405) 2021-10-16 18:36:03 +02:00
blockIcons.ts
cardFilter.ts Fix #1482. Handle isEmpty filter correctly. (#1490) 2021-10-08 10:10:57 -07:00
constants.ts Update to v0.10 (#1633) 2021-10-22 13:59:05 -07:00
csvExporter.ts Some webapp linter fixes (#1405) 2021-10-16 18:36:03 +02:00
emojiList.ts
i18n.tsx
lineReader.ts
main.tsx Added markdown styles from mattermost-webapp (#1500) 2021-10-12 13:22:04 -04:00
mutator.test.ts Fix GH-1690: Default card template on a board template adds a card to the template, not the board (#1748) 2021-11-09 17:11:22 -05:00
mutator.ts Fix GH-1690: Default card template on a board template adds a card to the template, not the board (#1748) 2021-11-09 17:11:22 -05:00
nativeApp.ts Some webapp linter fixes (#1405) 2021-10-16 18:36:03 +02:00
octoClient.test.ts
octoClient.ts Server generated ids (#1667) 2021-11-05 11:54:27 +01:00
octoUtils.test.ts
octoUtils.tsx Channels style UUID (#1369) 2021-10-05 09:52:59 -04:00
testUtils.tsx Typing adjustment - 1357 (#1411) 2021-10-04 16:56:32 -04:00
theme.ts Not using the mattermost-redux getTheme version because is not matching the mattermost-webapp version (#1186) 2021-09-14 16:43:52 +05:30
tsconfig.json
undoManager.test.ts Modify undo manager to return a value and use it on undo (#1616) 2021-10-21 18:50:19 +02:00
undomanager.ts Modify undo manager to return a value and use it on undo (#1616) 2021-10-21 18:50:19 +02:00
user.tsx [GH-1351] Webapp Linter Fixes - Investigate / Update using any Record<string, any> (#1682) 2021-11-04 11:43:03 +01:00
userSettings.ts Fix #1397. Add show empty toggle to Dashboard (#1398) 2021-10-04 14:27:30 -07:00
utils.test.ts Shows the version change banner only on plugin update and tries to reconnect when the interface is refreshed (#1807) 2021-11-13 12:03:53 +01:00
utils.ts Shows the version change banner only on plugin update and tries to reconnect when the interface is refreshed (#1807) 2021-11-13 12:03:53 +01:00
wsclient.ts Shows the version change banner only on plugin update and tries to reconnect when the interface is refreshed (#1807) 2021-11-13 12:03:53 +01:00