Skip to content

[BUG]:[Tests running on Microsoft Playwright service are inconsistent and failing] #103

@RF2023

Description

@RF2023

Describe the bug
Tests running on Microsoft Playwright service are inconsistent. Same tests have better pass rate via localhost and our non prod env vs running on playwright service.

To Reproduce
Steps to reproduce the behavior:
N/A

Expected behavior
Less errors and pass rate should match our local env runs with less time

Screenshots

Setup information (please complete the following information):

  • Azure Subscription Id:798f112d-0c47-431d-9b57-eeae586eb023
  • Workspace Name: Playwright
  • Service trace Id (if available):
  • Log snippet (if available):
  • Browser on which tests are executed (if applicable): chromium
  • Time range (in PST) when the issue was experienced: Multiple times
  • Playwright Version: 1.42.1
  • Client machine OS: MAC
  • OS requested on Service: linux

Additional context
We have implemented playwright service for few tests, especially when a Pull request is open it runs on 10 workers for 25 tests and once the Pull request is merged it runs on 10 workers for 40 tests and the pass rate is not 100% and throws errors as shown above. We have observed some discrepancies on the results running on the service vs the tests without the service and only on 4 workers (100% pass rate). Couple of tests we have identified that backend was sending data but it was not able to read the data being sent and the UI verification fails.

We tried running 25 tests across 10 workers across 5 instances in parallel and only 3 of them passed with 40-0 and the other two never finished.

Another thing to note is we have few tests which need to run in serial mode, due to the nature of file upload and other scenarios and one test fails in that all of them get skipped.

Call log:
  - <ws connecting> wss://eastus.api.playwright.microsoft.com/api/authorize/connectSession
  - <ws error> wss://eastus.api.playwright.microsoft.com/api/authorize/connectSession error WebSocket was closed before the connection was established
  - <ws connect error> wss://eastus.api.playwright.microsoft.com/api/authorize/connectSession WebSocket was closed before the connection was established
  - <ws disconnected> wss://eastus.api.playwright.microsoft.com/api/authorize/connectSession code=1006 reason=
  - <ws connecting> wss://browser.playwright.microsoft.com/ws

AB#2017175

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions