Skip to content
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

test to validate subrouting #927

Merged
merged 4 commits into from
Sep 23, 2024
Merged

test to validate subrouting #927

merged 4 commits into from
Sep 23, 2024

Conversation

mcmonkey4eva
Copy link
Contributor

@mcmonkey4eva mcmonkey4eva commented Sep 22, 2024

Adds a test to validate subrouted comfy instances, ie instances that are not accessed at the / webroot

Examples of this case "in the real world" include SwarmUI, as well as users of nginx/apache2 configs that put their instance not-at-root, and likely a wide variety of other professional/enterprise deployments in particular.

This adds a frontend dev mode proxy route from /testsubrouteindex to the root to simulate having some form of external proxy involved, connect to http://localhost:5173/testsubrouteindex/ to try it.

I included the history: createWebHistory(window.location.pathname), change to temporarily patch subrouting to work, pending @dmx974 adding a more proper solution that fits his goals with more complex routing.


The playwright test itself is the main goal of this PR, to ensure breakage does not happen in the future.

However from my local tests it is not able to generate, which I'm not sure if that's just local playwright always being unreliable, or if it's an indication that the playwright copy does not apply the dev proxy, and a playwright-specific patch is needed to test the proxy. yeah local issues, works as intended on the github action server

@mcmonkey4eva mcmonkey4eva added New Browser Test Expectations New browser test screenshot should be set by github action and removed New Browser Test Expectations New browser test screenshot should be set by github action labels Sep 22, 2024
@mcmonkey4eva mcmonkey4eva added New Browser Test Expectations New browser test screenshot should be set by github action and removed New Browser Test Expectations New browser test screenshot should be set by github action labels Sep 22, 2024
@mcmonkey4eva mcmonkey4eva marked this pull request as ready for review September 22, 2024 12:46
@huchenlei huchenlei merged commit 6a3dbe0 into main Sep 23, 2024
2 checks passed
@huchenlei huchenlei deleted the test-validate-subrouting branch September 23, 2024 00:24
huchenlei added a commit that referenced this pull request Sep 23, 2024
huchenlei added a commit that referenced this pull request Sep 23, 2024
@mcmonkey4eva mcmonkey4eva mentioned this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants