530 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Advice
0
votes
2
replies
53
views
which is the best folder structure format for e2e automation, playwright?
I was looking into different folder structure for e2e automation framework using playwright. is this good practice to have spec, page object and data file is same folder in e2e?
apps/
└── app-e2e/
├─...
3
votes
1
answer
115
views
How to correctly pass a data-testid to <AsyncSelect> in react-select for testing?
I am trying to add a stable data-testid to a react-select component (specifically AsyncSelect) so that I can reliably select it in my Playwright E2E tests.
When I try to pass the data-testid prop ...
0
votes
0
answers
54
views
Headlamp e2e tests on Minikube always redirect to /c/<cluster>/login ("Something went wrong with cluster ...")
I’m running Headlamp’s e2e tests locally. The app never shows the cluster chooser and always lands on http://127.0.0.1:50883/c/test/login with a red banner: "Something went wrong with cluster test." ...
0
votes
0
answers
91
views
Playwright tests cannot be run in Intellij IDEA if it is extended
I want to use fixtures in my project, but when I extend test from Playwright - those tests don't have run button. I referred to the Playwright docs, took their code and just removed some lines to make ...
0
votes
0
answers
170
views
Render OWN turnstile captcha in Playwright correctly
I'm currently writing Playwright tests for a site that uses Turnstile CAPTCHA validation. On our testing systems, the CAPTCHA uses the 'always-pass' site and private keys.
The issue I'm facing is that—...
0
votes
0
answers
85
views
[Playwright]: Worker teardown timeout of 380000ms exceeded
I am using Playwright to test an electron based Theia app, I had my test implemented as follows
import { test, expect} from "@playwright/test";
import { theiaApp } from "../../../...
-1
votes
2
answers
193
views
Playwright ui on Ubuntu doesn't work after update [closed]
After I updated my computer with latest ubuntu, yarn and composer suddenly my playwright test --ui stopped working as it should.
All buttons is hidden and input fields not showing upp, all text in ...
0
votes
0
answers
79
views
Playwright soft assertion shows unrelated hortReject TypeError instead of actual assertion error
I’m facing an issue with Playwright’s expect.soft where, if a promise is not resolved, the test continues execution as expected (because of the soft assertion). But at the end of the run, instead of ...
-2
votes
2
answers
340
views
How to initialize Page Object Models in Playwright without beforeEach
I'm working with Playwright and TypeScript and have noticed that Page Object Models (POMs) always require a page parameter for initialization.
Since the page object is only available from the ...
2
votes
1
answer
156
views
How do I export a function that returns a Playwright `expect` object from a typescript module?
I am abstracting some common code that's been copypasted between multiple Playwright projects into a shared library that my team can use across all our test suites. Methods that return Expect ...
1
vote
1
answer
188
views
Playwright test fails on an electron application, but running electron application is working fine
I am facing a bit of a situation.
I have an electron application built with webpack for which I have written tests in the Playwright framework.
Building the electron application with the following ...
0
votes
0
answers
82
views
Playwright storage state preserved in GH runner at next run
I am testing a developer portal. This developer portal is using microsoft MFA enforced login. I'm handling this MFA through the otpauth library. I am also using Playwright's storage state in order to ...
1
vote
3
answers
253
views
Playwright Re-Runs beforeAll and Reseeds Data When a Test Block Fails
We use a feature‐testing approach, where each Playwright test file covers an entire feature from start to finish. In these files, I generate random data (e.g., school name, leader email) at the module ...
1
vote
1
answer
630
views
How to use browser-use to make screenshots for each step and video recording for the whole session?
I am trying to build a python project that uses browser_use to perform tasks, and create video recording for the whole session and screenshots for each step.
But I can't find a way to do it. The ...
1
vote
1
answer
96
views
Allowing playwright project-scoped setup/teardown tests to be excluded from reports and test counts
Is there a way to exclude tests defined in setup/teardown projects from Playwright reports and test statistics — without losing their proper lifecycle execution behavior?
Playwright’s dependencies and ...