-
Notifications
You must be signed in to change notification settings - Fork 4
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
A few questions on the implementation #3
Comments
Hi @deviantintegral, I'm not sure if I can help you much, but I'll try to tell you how I use ddev with playwright. Maybe it will give you some clues. First, to answer your questions, here is what I can say:
Then, if you are curious, and I have time, here is how I use playwright : I only need javascript tools like I ended up with the following set up :
If you want to see all the command for a GitHub action, you can take a look here. Hope it could help. Thanks |
I was curious why you needed playwright-firefox. I think that's because you're using jest for tests instead of playwright/test. Makes sense, and matches the note at https://www.npmjs.com/package/playwright-firefox. I'm really surprised you didn't run into Firefox hangs - but perhaps it's now been fixed upstream. I'm going to post a repo with the setup we have, and then come back and do a comparison. |
Here's the repo: https://github.com/deviantintegral/drupal-playwright |
Hi @deviantintegral, thanks for the repo. Very complete ! For information, I just tested a full test suite with Firefox and some WordPress plugin I maintain. Despite errors on some tests (which could be corrected, I guess, by adding some of the usual workarounds), some tests passed at 100% like this one : https://github.com/julienloizelet/cs-wordpress-bouncer/actions/runs/4508204588/jobs/7936683789 As you said, maybe the bug is fixed upstream. |
To follow up, I've been working on converting the example repo to a ddev addon, which I've done here: https://github.com/deviantintegral/ddev-playwright. We've been happy with the "all in one container" approach for a few months now, so I think we'll be sticking with it. Thanks for your feedback! |
Hello, great to see this!
I've also been working on this on and off over the past month. So far it's all custom code in a single site. Here's a few notes and challenges I ran into, and I'm curious if you've hit them yet. I don't think you have because I don't see workarounds in the code.
At a high level, what we've ended up with is:
test/playwright
.ddev playwright
command that copies it in. As well, a pre-start host hook that updates it if it already exists. Unfortunately, symlinks and hardlinks aren't working.The text was updated successfully, but these errors were encountered: