-
Notifications
You must be signed in to change notification settings - Fork 17
PB-2064: Fix search result test #1546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PB-2064: Fix search result test #1546
Conversation
deb4d01 to
f17ffe2
Compare
12cd9a3 to
17cab68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shoud change all the forced void you used with something like
searchStore.setSearchQuery('', {}, dispatcher)
.catch((error) => {
log.error({
title: 'Some title',
messages: ['Error while searching', error]
})
})The ESLint/TS error that is raised there should then disappear (no need to .then everything, but you at least need to catch the errors of the promise you create)
2646456 to
fc77ba8
Compare
packages/viewer/tests/cypress/tests-e2e/search/search-results.cy.ts
Outdated
Show resolved
Hide resolved
fc77ba8 to
5a1e0dd
Compare
packages/viewer/tests/cypress/tests-e2e/search/search-results.cy.ts
Outdated
Show resolved
Hide resolved
pakb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…oiding re-injection
… better state consistency
ec82ae6 to
201b7ae
Compare
Fix proj4 not being registered in search API by externalizing peer dependencies (proj4, axios, ol) so they use the host application's instances instead of bundled copies.
Pass translations (kantone -> "Ct.", district -> "District") through the search API chain so location results display the correct origin prefix in the UI.
|
@pakb, it turns out that there is a change in the search API (translation) and a different proj4 instance in api and coordinate (no Swiss CRS). Also, for the mouseenter and mouseleave, I can't make |
|
strangely, the search result tests are running so long... |
|
@pakb, the tests pass locally, but I need to run them one by one. If I run all 3 tests together, my cypress cries and the test cann't be run because timeout |
Let's see if this improve the situation on the CI
pakb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
splitting the last test fixed the file 🎉

Test link