Patrik Oldsberg
46570fecbc
test-utils: migrate theme usage and switch to actual MUI icons
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-11-11 17:26:49 +01:00
Patrik Oldsberg
6d790f0f63
test-utils: reintroduce defaultApis
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-11-11 17:26:48 +01:00
Patrik Oldsberg
29eb8d7dbe
test-utils: switch mock icons to be plain svg elements
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-11-11 17:26:47 +01:00
Patrik Oldsberg
60e5d356cb
core-app-api: add missing core feature icons + move icon things around a bit
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-11-11 17:26:46 +01:00
Patrik Oldsberg
0fb57d28e3
dev-utils,test-utils,app: update to use app-defaults
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-11-11 17:26:13 +01:00
Johan Haals
f808392183
reference library function
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2021-10-28 15:54:01 +02:00
Johan Haals
419054c97a
Remove usage of deprecated Keyboard class
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2021-10-28 15:54:01 +02:00
Johan Haals
49252f0d6d
Merge pull request #7727 from backstage/test-utils-core
...
Move test-utils-core into test-utils
2021-10-25 11:09:16 +02:00
Fredrik Adelöw
10615525f3
Do Observable too
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-10-22 16:13:25 +02:00
Johan Haals
adb27441e6
use setupRequestMockHandlers inside msw
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2021-10-22 09:39:23 +02:00
Johan Haals
60a75ae833
chore: fix import
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2021-10-22 09:38:23 +02:00
Johan Haals
87a7cbdb68
replace msw with setupRequestMockHandlers
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2021-10-22 09:38:23 +02:00
Johan Haals
4f14d881c4
Move test-utils-core into test-utils
...
- Deprecates methods in test-utils-core
- Migrates code intotest-utils
- Updates documentation
- Export missing types
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2021-10-22 09:38:21 +02:00
Dominik Henneke
54bbe25c34
Store the namespaced bucket storage for each instance that was created with MockStorage.create() instead of global variable
...
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com >
2021-10-14 12:08:41 +02:00
Eric Peterson
b500fac551
Review feedback.
...
Co-authored-by: Camila Belo <camilaibs@gmail.com >
Co-authored-by: Fredrik Adelöw <freben@gmail.com >
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2021-09-30 15:46:21 +02:00
Eric Peterson
1ff7386291
Simplify/clarify Analytics API types and naming.
...
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2021-09-30 15:46:20 +02:00
Eric Peterson
dffa1892cd
Simplify Analytics API from analytics module POV
...
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2021-09-30 15:46:19 +02:00
Eric Peterson
e749a38e89
Add MockAnalyticsApi to test-utils
...
Signed-off-by: Eric Peterson <ericpeterson@spotify.com >
2021-09-30 15:46:18 +02:00
Patrik Oldsberg
8142a8ecb2
packages,plugins: add package documentation
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-09-14 18:47:53 +02:00
Fredrik Adelöw
923491eece
run prettier formatting
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-08-09 11:54:38 +02:00
Philipp Hugenroth
73b7f246e4
Fix testing for MUI breakpoints
...
Signed-off-by: Philipp Hugenroth <philipph@spotify.com >
2021-07-15 18:57:50 +02:00
Philipp Hugenroth
713949231f
Fix tests to support window.matchMedia & add tests for responsiveness
...
Signed-off-by: Philipp Hugenroth <philipph@spotify.com >
2021-07-09 11:51:19 +02:00
Patrik Oldsberg
9258c54f87
Merge branch 'master' into rugvip/mod
2021-06-22 10:07:18 +02:00
Patrik Oldsberg
8ca26f1f75
test-utils: migrate to new core packages
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-06-19 15:33:12 +02:00
Fredrik Adelöw
a88073c29a
Update copyright headers
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-06-18 20:26:42 +02:00
Tim Hansen
7af9cef074
Fix MockStorageApi recreating bucket storage
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-05-31 09:43:42 +02:00
Patrik Oldsberg
e6f0180242
core-api: updated Observable type to support interop
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-05-17 13:24:44 +02:00
Marcus Eide
c2c55e8848
Add alertApi to mockApis
...
Signed-off-by: Marcus Eide <eide@spotify.com >
2021-04-20 15:07:21 +02:00
Patrik Oldsberg
ae6250ce3e
test-utils: remove unnecessary wrapInTestApp wrapping that broke mount point discovery
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-04-01 14:45:39 +02:00
Oliver Sand
2fe195e8f2
Revert everything except the test
...
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com >
2021-03-19 11:40:51 +01:00
Oliver Sand
06dd774eac
Support routes of type SubRouteRef in mountedRoutes parameter of renderInTestApp
...
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com >
2021-03-19 10:34:42 +01:00
Patrik Oldsberg
47c11f3748
test-utils: add workaround for external routes no longer being resolved when mounted
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-03-08 19:14:41 +01:00
Johan Haals
34b710f0c0
test-utils: Attach mountPoint to Page
...
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-02-16 16:08:08 +01:00
Johan Haals
dc12852c9e
test-utils: Allow ExternalRouteRef on mountedRoutes
...
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-02-16 14:54:35 +01:00
Patrik Oldsberg
0e640893df
test-utils: add mountedRoutes option to wrapInTestApp
2021-02-05 13:56:53 +01:00
Fredrik Adelöw
5d52e20a44
core-api: run bindRoutes in the app impl and inject provider
2020-12-17 13:18:13 +01:00
Askar
a6a2ca6204
remove React's FC type from codebase ( #3527 )
...
* WIP-packages: remove React's FC type from codebase
* remove FC from other directories
* fix build failures
* add types to required packages
2020-12-10 11:23:29 +01:00
Fredrik Adelöw
fae3fafcfa
silence some new ts squigglies in the editor ( #3435 )
2020-11-25 09:57:16 +01:00
blam
a8d7e4cfe3
chore: fixing remaining tests and merge conflicts
2020-10-20 00:59:50 +02:00
blam
fdf090b57f
feat(msw); refactor away the setup commands into ttestutils
2020-10-07 17:20:26 +02:00
Patrik Oldsberg
a5741ff0aa
test-utils: switch to new auto DI api
2020-09-08 11:31:48 +02:00
Fredrik Adelöw
82ba3169fe
chore(deps): prepare us to typescript 4
2020-08-31 10:46:56 +02:00
Fredrik Adelöw
7389f326d9
chore: add import/newline-after-import lint rule
2020-07-02 11:25:04 +02:00
Fredrik Adelöw
879bc21893
feat(test-utils): mock storage api
2020-06-26 13:24:31 +02:00
Patrik Oldsberg
9a37995151
packages/core-api: split AppComponent into AppRouter and AppRoutes
2020-06-16 11:35:35 +02:00
blam
0cd9a8a7d4
chore(react-router-v6): tidy up parts of the PR i wasn't happy with
2020-06-11 20:42:39 +02:00
blam
7ecfceac0f
chore(react-router-v6): made some more progress on getting the tests passing
2020-06-11 18:35:53 +02:00
blam
48aacfbe17
Merge branch 'master' of github.com:spotify/backstage into blam/react-router
...
* 'master' of github.com:spotify/backstage: (89 commits)
Use URLSearchParams
Use location?.type once more
chore(catalog): clean up CatalogTable, use only Entity
chore(catalog): clean up ComponentPage, use only Entity
chore(catalog): tweak getEntityByName a bit, handle 404s properly
chore(catalog/star): only set the cache if there are entries from the response
chore(catalog/star): added a comment about why we are using a simple cache here
chore(catalog/star): removing msw dependency, wrong branch
chore(catalog): consistent use of named exports
chore(msw): Added msw dependency
chore(catalog/star): fixing issues with unmocked deps
chore(catalog/star): adding a simple cache to stop flicker as a stopgap
chore(catalog/star): reworking how the starring works, it now stores uri sort of references for entities
fix(core): Tabs useEffect dependency list
docs: format with prettier (#1218 )
Optional namespace and name as one part of URL
docs/auth: added overview, oauth description and glossary
docs: added plantuml generation script
docs: added prettier config
Remove deleted UserBadge component from Sidebar story
...
2020-06-11 17:36:19 +02:00
blam
cf204edeb2
chore:(react-router-v6): Moving more logic across to react-router-v6
2020-06-09 11:57:48 +02:00
Patrik Oldsberg
2bbdf644c8
Merge pull request #1203 from spotify/rugvip/apimocks
...
packages/test-utils: added MockErrorApi and include in all test apps
2020-06-08 18:57:08 +02:00