microsoft / microsoft/playwright

[Feature] Add a label/better UI to identify contexts in the trace viewer

Open
#28,904 3 comments 11 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

feature-trace P3-collecting-feedback
Dominant language
TypeScript
Stars
96.3k
Forks
6.5k
Avg merge
1d 6h
Merged PRs (30d)
180

Description

Let us know what functionality you'd like to see in Playwright and what your use case is.

Currently working on a dashboard app where tests include running multiple contexts. As an example, one of the feature is chat modal to chat with others. Simple test: User1 sends message to User 2 and verify it is received on User 2 end. While debugging long scenario tests in trace viewer, in the action snapshot section, it is very hard to tell whether the action is from context 1 or context 2. The current way I am using to identifying whether it is user1 or user 2 is go to source and look at the code or really look closely in the action snapshot to differentiate.

Do you think others might benefit from this as well?
Yes, it will help in the following cases:

  • For developers who just want to debug the test in trace viewer and unfamiliar with the testing code base
  • Long test scenarios which involve similar kind of UI and hard to differentiate

I was thinking of adding a label like C1 or C2 in the actions section.
Screenshot 2024-01-08 at 2 40 48 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.