How do you use Codespaces with tools like Playwright/Cypress? #47700
Replies: 6 comments 4 replies
-
Hi @alexbjorlig ! Thanks for reaching out! Do you mind going into more detail on how you run playright locally versus what happens when you run it in a codespace? Based on initial investigation, I would recommend looking up how to run a XServer in your codespace; something like XQuartz may help! |
Beta Was this translation helpful? Give feedback.
-
This is for CI, but it might work in your case, too: https://playwright.dev/docs/ci#running-headed Basically, try using |
Beta Was this translation helpful? Give feedback.
-
hi @alexbjorlig , have you solved this issue? I have also encountered this issue. I was able to run my tests without an error using xvfb-run but the browser where the tests are running doesn't show |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
I don't really think we nee dmore information here? The question still stands - why/how do we effectively debug playwright tests in codespaces/devcontainers |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I'm trying to set up GitHub Codespaces for our team. My objective is to make it really easy to onboard new developers, so there is no need to "fight" with any setup - including e2e/component testing.
If I run Playwright with
--debug
in a container, I get this message:Looks like you launched a headed browser without having a XServer running
.What steps would you recommend here 🤔?
Beta Was this translation helpful? Give feedback.
All reactions