-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
New vite based application runtime #1881
Conversation
test/models/ToolpadEditor.ts
Outdated
@@ -144,23 +144,25 @@ export class ToolpadEditor { | |||
await this.page.mouse.up(); | |||
} | |||
|
|||
componentCatalogItem(name: string): Locator { |
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.
nit: maybe getComponentCatalogItem
?
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.
I tried to be consistent with hierarchyItem
below. I'm renaming both
|
||
this.dragToAppCanvas(sourceLocator, moveTargetX, moveTargetY); | ||
await this.dragToAppCanvas(sourceLocator, moveTargetX, moveTargetY); |
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.
👍
Great feature! |
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.
Currently, to try out the new functionality you'll have to run the toolpad cli with |
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.
Yes, I've added an integration test for |
Use vite to build the Toolpad applications:
--viteRuntime
CLI flag to allow canary testingAdditional fixes:
/preview/pages
not redirecting to the first pagenext/image
usagedragNewComponentToAppCanvas
was exiting before the drag was completed, resulting in failures if the test wasn't waiting on anything afterwardsI can open a separate PR for those if you want, but most are needed for this PR as well
Closes #1008
Closes #1516