Michael Telatynski
b66510a90b
Fix crash on null idp for SSO buttons ( #8650 ) ( #8653 )
...
* Add test case for null identity_providers for SSO
* Fix typing for identity_providers
* Make null idp explicit and handle in analytics
* chore: whitespace fix
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
(cherry picked from commit 60cd740b66 )
Co-authored-by: Hugh Nimmo-Smith <hughns@users.noreply.github.com>
4 years ago
Hugh Nimmo-Smith
60cd740b66
Fix crash on null idp for SSO buttons ( #8650 )
...
* Add test case for null identity_providers for SSO
* Fix typing for identity_providers
* Make null idp explicit and handle in analytics
* chore: whitespace fix
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
4 years ago
Kerry
42f12485bc
fix ts issues in Registration-test ( #8579 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Travis Ralston
26dc2ba45e
Step 3.1: Stop using `getComponent` in tests
4 years ago
Travis Ralston
d8a939df5d
Use & enforce snake_case naming convention on config.json settings ( #8062 )
...
* Document and support the established naming convention for config opts
This change:
* Rename `ConfigOptions` to `IConfigOptions` to match code convention/style, plus move it to a dedicated file
* Update comments and surrounding documentation
* Define every single documented option (from element-web's config.md)
* Enable a linter to enforce the convention
* Invent a translation layer for a different change to use
* No attempt to fix build errors from doing this (at this stage)
* Add demo of lint rule in action
* Fix all obvious instances of SdkConfig case conflicts
* Fix tests to use SdkConfig directly
* Add docs to make unset() calling safer
* Appease the linter
* Update documentation to match snake_case_config
* Fix more instances of square brackets off SdkConfig
4 years ago
Kerry
bc8fdac491
fix more type issues in unit tests ( #8053 )
...
* fix ts issues in test/components/structures
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in test/components/views/context_menus
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Kerry
8b9263c808
Clean up some unit test logs ( #7857 )
...
* kill some unit test logs in arrays-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove mock logs that are asserted against anyway
* remove more logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix safeCOunterpartTranslate warnings in tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* more safeCounterpartTranslate warnings
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove more logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add helper
Signed-off-by: Kerry Archibald <kerrya@element.io>
* naming
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Kerry
cb1c94dd2b
Fix leaks in Login unit tests ( #7704 )
...
* make Login-test tsx, fix leaks
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Aaron Raimist
2e8a93834b
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
4 years ago
Kerry
697b5d28b3
fix leaking registration test ( #7304 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
4 years ago
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
4 years ago
J. Ryan Stinnett
ae0a8b8da4
Auto-fix lint errors
5 years ago
Michael Telatynski
f11a7083ae
Switch to stable endpoint/fields for MSC2858
5 years ago
Michael Telatynski
2142a65a9b
delint
5 years ago
Michael Telatynski
4c2b6f410b
fix tests
5 years ago
Michael Telatynski
1b1c482f9c
Iterate tests
5 years ago
Michael Telatynski
0041dae664
26 test failures to go :D
6 years ago
Michael Telatynski
6ad31fe023
30 test failures to go :D
6 years ago
Michael Telatynski
ffa2ac172c
delint
6 years ago
Michael Telatynski
18f81d80db
Initial jest stuff. Blocked on Babel 7
6 years ago
Michael Telatynski
d5c96b86d4
fix test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
Michael Telatynski
02dfdffc4f
Fix failing test due to newly added assumption
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
Michael Telatynski
95e7e366ed
Fix other test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
Michael Telatynski
4719084af2
fix test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
Michael Telatynski
bf30cfe699
Fix other test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
Michael Telatynski
1c7d67e8b3
fix test
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
David Baker
a87fb7eaa2
also remove from comment
6 years ago
David Baker
3c4c595f79
remove old serverCaps
6 years ago
David Baker
19c7a4627d
fix test
6 years ago
David Baker
7602d76723
fix test
7 years ago
Travis Ralston
ae63df95ea
Fix tests to use new serverConfig prop
7 years ago
J. Ryan Stinnett
71c30b5641
Add some basic login tests
7 years ago
J. Ryan Stinnett
71d1a24fcb
Add some basic registration tests
7 years ago
J. Ryan Stinnett
20b7debcaf
Remove support for team servers
7 years ago
J. Ryan Stinnett
9470424bcb
Enable linting for all auth related files
7 years ago
J. Ryan Stinnett
29be3ee4b5
Rename login directory to auth
7 years ago