* Refactor login state management
- Previously relied only on presence of cookie
- Cookie may not actually be *valid*
- Inspect actual login state by looking at userState values
- Ensures better sequencing of global state API requests
- Login state is now correctly preseed across browsers
* Ignore errors for user/me/ API endpoint in playwright test
* Do not request notifications unless logged in
* Prevent duplicate licenses
* Update src/frontend/src/views/DesktopAppView.tsx
Co-authored-by: Matthias Mair <code@mjmair.com>
* Simplify checkLoginState
* Fix bug in return types
* Update playwright tests
* linting
* Remove error msg
* Use token auth for API calls
- Will (hopefully) allow us to bypass csrfmiddle request handling?
* Refetch token if not available
* Use cache for DISPLAY_FULL_NAMES setting
* Update src/frontend/tests/baseFixtures.ts
Co-authored-by: Matthias Mair <code@mjmair.com>
* PUI test updates
* Tweak doLogout function
* Revert change to baseFixtures.ts
* Cleanup
* Fix highlighted property
* Test cleanup
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
* ensure no errors are thrown in the console
* fix key issue
* add missing keys
* fix table order
* fix wrong imports
* add missing key
* fix accessor ref
* fix style
* mark internal fetching errors and ignore them
* do not raise internal errors
* ignore barcode api calls
* style fix
* do not raise on chrome errors
* refactor url
* more exclusion
* remove duplicate assertation
* add coverage to PUI
* fix testing command
* always do all steps
* fix test assumptions
* add test for serving and logging into pui from django / cui tech stack
* fix up coverage
* fix intentation
* remove paralell flags
* remove coverage finish step
* remove flag
* change names
* add full clickdown test
* more tests
* more tests
* sprinkle in some timeouts
* try using admin
* disable page 1 tests for now
* remove additional tests for now
* only build sourcemaps if coverage is enabled
* fix sourcemap assumption
* add more tests
* fix test
* Update package.json
* move tests to seperate file
* rename test files
* move defaults to seperate file
* centralise user creds
* lower migration level
* re-add page 1
* rename and split tests
* split out problematic test
* Add thumbnail building step
* remove unneded steps
* fix filename
* add more logging
* add sourounding table
* add missing tabs
* wait instead of click
* fix test
* split tests out more
* disable test for stock
* tes part sub-pages
* split tests more
* add company tests
* more sales testing
* split parts testing
* Add test for settings + admin center
* add spotlight
* [PUI] Quick commands pallet
Fixes#5888
* add testing for new commands
* add text input testing
* only test backend if code changed
* add trans files
* fix testing text
* always push coverage
* add nav state to manage navigation state
* add navigation action and test
* make test faster
* fix typo
* use texts instead
* fix tests for linux
* use var to determine action key
* Revert "use texts instead"
This reverts commit 77711895569a42426a422d679496661c0ee9d25b.
* add wait for input
* split out keyboard based tests
* split ou test
* add upload
* revert assert change
* adjust reporting settings
* ignore error code
* fix reporter config
* add full info suit (+tests)
* make tests more accurate
* license modal fixes
* unify icons
* add custom actions registering
with removal on page refresh
* only upload report data if the tests failed
* Revert "add trans files"
This reverts commit 28d96e058febba96979afd3054e04cd207bffba5.
* adjust url that iw waited for
* try an await and body locator for keypresses
* test registering addition actions
* extend testing for actions
* add doclink and test
* merge tests
* add coverage to PUI
* fix testing command
* always do all steps
* fix test assumptions
* add test for serving and logging into pui from django / cui tech stack
* fix up coverage
* fix intentation
* remove paralell flags
* remove coverage finish step
* remove flag
* change names
* add full clickdown test
* more tests
* more tests
* sprinkle in some timeouts
* try using admin
* disable page 1 tests for now
* remove additional tests for now
* only build sourcemaps if coverage is enabled
* fix sourcemap assumption
* Update .github/workflows/qc_checks.yaml
Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>
* fix package.json
* add finish step
---------
Co-authored-by: Lukas <76838159+wolflu05@users.noreply.github.com>