-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
Editor integration tests #831
Conversation
Your Render PR Server URL is https://toolpad-pr-831.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cbvsek82i3moe6r0v3qg. |
ffd1ae5
to
c333d82
Compare
c333d82
to
3b5c0a9
Compare
3b5c0a9
to
a13efd4
Compare
Looks like we have to use the overlay element to capture clicks/drags, as it's the one that captures them. It doesn't work with other elements in the same position. Let me know if you think anything should be different in terms of how i reorganized some files and their structure a bit too! |
Will add a couple of tests for prop controls in a separate PR now too. |
* Add prop controls integration test * Add TOOLPAD_CREATE_WITH_DOM environment variable in CI * Rebase in editor tests * Change tests to avoid text field bug * Another env var attempt (-.-) (last attempt or I'll ask) * Attempting to fix Firefox tests * Attempt for Docker test configuration
d6ddd09
to
1e763da
Compare
This reverts commit 49b379d.
@Janpot |
Is there a ticket in the playwright repo that we can link to that describes the faulty behavior in firefox? If not, have you tried creating a minimal reproduction? Perhaps you can open a ticket and link to it? I don't like to add hacks for bugs without adding documentation that can tell us more about the status of said bug. (example: https://github.com/mui/mui-toolpad/blob/4f71c00b28c8e57d9bad5ff99ede85f1d1aecc45/packages/toolpad-app/src/components/SplitPane.tsx#L58) When there's a proper way forward towards solving the firefox issue in the future, then I'm fine merging this. |
i couldn't find a proper related issue in the Playwright repo, and yeah i thought about creating one myself, just takes a bit of work to create a reproduction. i'm working on it, there's probably no rush to merge this so we can wait |
Your Render PR Server URL is https://toolpad-pr-831.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cck9b12rrk04c7mi4dd0. |
I've managed to reproduce the bug in a minimal reproduction: So it's confirmed, seems like there's a specific issue with triggering HTML5 drag & drop events in iFrames, in Firefox only. I've included a link to the issue I created now, so will merge this PR if the tests seem stable in CI. |
great 👌 |
@apedroferreira Following up on the playwright issue, it seems that it's closed due to the closing of microsoft/playwright#17153 (would have been nice of them to reference that issue). Does calling |
looks like they're supposed to have fixed it, i'll try removing the Firefox specific logic and see if things work now |
or i guess they might not have fixed it after all? |
Closes #758
Refactored to use Playright's Page Object Model as we intended.