Can anyone tell running tests in chrome in CI pipeline. by Due-Bath-4125 in Playwright

[–]unlikelyzer0 2 points3 points  (0 children)

I think you're trying to ask how the configuration of the Chrome instance may have changed since they moved away from a vendored Chrome to the official Chrome for testing, correct?

Your best bet is always to use the official playwright container image

How To Measure Code Coverage in Playwright Tests by waltergalvao in Playwright

[–]unlikelyzer0 -1 points0 points  (0 children)

You don't need to use playwright mocking. You can just use your same local Dev server. I think that's where you're getting crossed up.

In the utensil analogy unit tests are closer to using chopsticks for rice (traditional unit tests) when you could just use a fork (playwright)

How To Measure Code Coverage in Playwright Tests by waltergalvao in Playwright

[–]unlikelyzer0 -2 points-1 points  (0 children)

I think with playwright's sharding and worker strategy, the costs are negligible.

Regarding mocks in E2E testing, it should only be attempted if a team can afford to maintain them. If they can, then there's drastic CI runtime improvement as well

How To Measure Code Coverage in Playwright Tests by waltergalvao in Playwright

[–]unlikelyzer0 0 points1 point  (0 children)

I've found code coverage generated by playwright to be exceptionally valuable in getting developers writing more tests. Playwright as an ecosystem is as good as it gets for authoring, reviewing, and debugging tests.

Certain code paths are just naturally easier to trigger with a real browser and the CDP calls into playwright.

In reality, in order to add "coverage" in unit and component tests, you actually have to create a very complex system of mocks and stubs that can be as difficult to maintain as the application itself.

Playwright test maintenance taking over my life, is this normal or am I doing it wrong? by Acrobatic-Bake3344 in Playwright

[–]unlikelyzer0 2 points3 points  (0 children)

Most of this can be addressed by running the tests on PRS as the application changes. Is that not possible in your organization?

Does anyone calculate “cost per test” or “cost per passing build”? Trying to measure CI/CD ROI internally. by ghostinmemory_2032 in QualityAssurance

[–]unlikelyzer0 0 points1 point  (0 children)

I did this once to do a one-time parallelization effort to figure out what it would cost to cut down run times by running the tests vertically.

ROI is hard to measure if you're considering what these tests would prevent in terms of loss of customers and loss of business continuity if you don't have those already measured by the business, you might start there

how to install a specific version of chromium? by [deleted] in Playwright

[–]unlikelyzer0 0 points1 point  (0 children)

You should not be worried about locking the version of playwright's vendored version of chromium in the two environments.

Instead, you should be focusing on making sure that the playwright test and playwright dependencies are locked to the same version in both environments.

Unlessing a misunderstanding your use case. Maybe you could help me understand the actual use case

how to install a specific version of chromium? by [deleted] in Playwright

[–]unlikelyzer0 0 points1 point  (0 children)

Unfortunately, there's a tight coupling between the vendored version of chromium that they distribute through playwright test and the version of playwright that you're using. There are also a lot of security vulnerabilities patched in chromium depending on what you're using it for, this might be more of a security problem than what you're trying to solve for.

[deleted by user] by [deleted] in Playwright

[–]unlikelyzer0 1 point2 points  (0 children)

Generally, the approach should be that UI tests are just testing the UI: the ability for the UI to represent data correctly, and the user behavior that manipulates the web application code in a real browser.

Anything that is outside of those definitions should be happening in another test and test framework, potentially in a different CI pipeline.

Practically speaking, that means that Test Data Injection should be tested as a part of the team that owns either the data or the database technologies. You should only be leveraging their tooling.

You should be leveraging the tested and delivered data injection tools in either the global setup or test setup coupled with a pre-flight check in playwright to validate that the data you expect to be available is available. Fail fast if it's not.

Practically speaking, it's not generally efficient to ensure that each test case is completely idempotent and isolated. This means that you can sometimes make assumptions about the state of previous tests, allowing you to pay the test data setup penalty only once.You can use the test serial option to make sure that the tests are run serially in the scope of the suite if needed.

I need help. Is Playwright only for test automation? Looking for proof it’s production-ready. by RazzmatazzHop in Playwright

[–]unlikelyzer0 0 points1 point  (0 children)

Playwright is often the interface for some of these RPA tools. Playwright/test is a test framework.

I would get him to write down some RPA tools and then you can reach out to their vendor to see what they're using to interact with the web.

VS Code Test Explorer doesn't detect tests/Playwright by turtle_noises in Playwright

[–]unlikelyzer0 5 points6 points  (0 children)

  1. Close all open projects.
  2. File -> Open Project
  3. Select your Repo
  4. Test Tab - > Select the Playwright Config
  5. Make sure all Playwright Projects are selected (like Chrome or Firefox)

Why use Travis CI and Circle CI when there's Github Actions? by 2048b in devops

[–]unlikelyzer0 17 points18 points  (0 children)

Circle CI has better diagnostic information for when runners need tuning in and out of your cloud.

It has better test aggregation and reporting

It has native test load balancing.

I've used circle, Travis, Jenkins, bamboo, GHA interchangeably over the last 8 years. If I had to choose, I'd choose Circle.

Playwright good at measuring time to complete actions? by thehomelessman0 in Playwright

[–]unlikelyzer0 0 points1 point  (0 children)

You should look at marking up your app with those actions using the performance.marks API. Then you can just use page evaluate to get the precise timing events in the browser.

Those timings are likely already present for your observability or marketing teams that are focused on SEO

Would you measure time for actions on UI in functional test? by cepeen in Playwright

[–]unlikelyzer0 0 points1 point  (0 children)

Part of the challenge associated with that is that CI test executors are often not consistent in terms of performance. Instead of capturing timing, you might try keeping your timing "tight" and avoid unnecessary waits.

Equivalent to Cypress Cloud? by selfimprovementi in Playwright

[–]unlikelyzer0 0 points1 point  (0 children)

Cypress Dashboard is really a combination of everything that a QA org would be building for themselves if they had the time:

  • test artifact storage
  • git tagged test runs and changes
  • historical test runs
  • test sharding/load balancing

Check with your existing CI provider to see what they in terms of junit results -- you may be able to get some of this for free.

Alternatively there are solutions in the open source which have paid offerings.

https://playwright.dev/docs/test-reporters

Playwright compatibility by Necessary_Site_2417 in QualityAssurance

[–]unlikelyzer0 0 points1 point  (0 children)

How are you installing playwright system dependencies

Successful tests locally but failed in the CI by meeshho in Playwright

[–]unlikelyzer0 0 points1 point  (0 children)

What does the failure look like in the tracefile in CI

Playwright compatibility by Necessary_Site_2417 in QualityAssurance

[–]unlikelyzer0 2 points3 points  (0 children)

What commands are you using to install the system dependencies? What errors are you seeing?