wip: feat: import all views dynamically #752
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#752
Loading…
Reference in New Issue
No description provided.
Delete Branch "dpschen/frontend:feature/import-view-dynamically"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Better code splitting.
Code Splitting can be optmized later even further.
But for now I want to focus on the vue 3 transition instead.
3199d3d162
todc5a2e19ef
feat: import all views dynamicallyto wip: feat: import all views dynamicallydc5a2e19ef
to16e2fecb7b
16e2fecb7b
toc5776b9a5a
c5776b9a5a
to20f6f95546
20f6f95546
to4ef533ae0a
@konrad: Do you understand what fails here?
Is it reprocable locally?
I've still problems running cypress.
Running
cypress install
doesn't work:Trying
npx cypress install
now, but that takes ages inside the docker... I think that's why I stopped trying the last time :D@konrad:
Seems like it has something to do with the cypress cache volume.
When I comment that out the install is much faster.
For now I install cypress now each time that I restart the container :/ any idea?
Other than that I had some problems with setting the
CYPRESS_BASE_URL
. My docker knowledge is a bit rusty so I wasn't aware of host.docker.internal.Maybe that should be noted in the readme for other mac users. Could also be commented out in the compose file.
At least cypress runs now with some effort :D
Did you try to mount the .cache directory to the host?
Does it make a difference if you try to install it on the host? That might actually be a good idea in general because you get cypress' dashboard with all details. Makes it a lot easier to debug failing tests.
If you're using the docker-compose config in
cypress/
you should be able to just use the url that is configured there.It didn't work with that configuration though. I think it's a Docker mac specific thing.
Will continue to check the caching issue.
2395ed8ad9
to7b91d1ffd6
Okay I couldn't get it run with docker but locally works now.
When I build the commit #7b91d1ffd6 I get for example these errors.
It seems like the page is not loaded yet. When it tries to click the button :/
Since you're loading all views dynamically, that sounds very possible.
Is there an error in the browser console?
No everything works normal.
And in the console in the test?
Not sure what you mean exactly.
Right now I'm only focussing on trying to solve the "Team/Creates a new team" test in a good way.
What else do you mean then the message that is already in the screenshot?
I found a hacky workaround. In this case I'm able to fulfil the test if I navigate to the
/teams/new'
route to warm up the cache:I'm actually a bit confused that this works because I always thought that cypress waits for stuff to load. Right now I presume it might be some issue with the service worker in combination with the async routes. But not really sure.
In cypress, you have an option in the top menu to open developer tools. That lets you view the browser console of the test.
Are you running the tests with a prod bundle? The service worker is disabled in dev mode so it should not have an effect on the test.
I was trying both. In both cases I got different test results than the test here.
Either way. I removed the dynamic route import (except the ones that were already dynamic) from the vue 3 branch. So I'll leave this one open for now.
I'm trying to tackle all the remaining issues with the vue3 branch, because the remaining issues seem to be minor.