-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(trace): special UI for API tests #34933
base: main
Are you sure you want to change the base?
Conversation
To play around with this locally, clone the PR and then set up your local env with: npm ci
npm run watch
npx playwright install Then you can |
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"31 failed 5 flaky38025 passed, 650 skipped Merge workflow run. |
This would make things more clear When in this state I wonder if there are some stats you could show when different levels are selected. For Passed this would be less important but having a 3 of 6 tests passed (50%) with some of the details to the right that could be clicked into may be useful? Seems like a lot of wasted space where something could be displayed when at the higher levels with describe blocks. ![]() I love seeing the PATH ![]() This is the repo I used (I just dropped it in the examples folder, did an npm install and I removed the playwright directories from the node_modules folder https://github.com/playwrightsolutions/playwright-api-test-demo Loving these updates! also this looks exciting! |
Thanks, that's great feedback! |
For tests that don't use Playwright's browser features, but exclusively API testing, our UI currently looks just like the UI for browser tests:
Most of the screen is taken up by the blank browser snapshot, the network requests are tucked away in a tab below, and they show exactly the same entries as the action panel already does. We also show a
Locator
tab that doesn't do anything inside an API test.This PR is a draft for a special UI for API tests. It replaces the browser snapshot with the request details of the currently selected action, hides the
Locator
tab and removes theNetwork
tab because the same list exists inside the actions panel:Opening this here as a draft to gather feedback from our community. If you use Playwright extensively in your API testing, do you make use of the Playwright UI? Would these changes help you? What other UI changes would you like to see?