playwright/test
Dmitry Gozman b34d9aba25
feat(trace): experimental traces for our tests (#3567)
This introduces basic tracing enabled in our tests.

What is captured:
- network resources;
- snapshots at the start of most actions;
- snapshot after the test failure.

How this integrates with test runner:
- context fixture calls private method context._initSnapshotter() and uses Tracer to trace all events;
- all tests share a single test-results/trace-storage directory to store blobs;
- each test has its own trace file.
- npm run show-trace opens a bare-minimum trace viewer that renders snapshots.
2020-08-28 10:51:55 -07:00
..
__snapshots__ feat(testrunner): allow unexpected passes (#3665) 2020-08-28 00:32:00 -07:00
assets feat(trace): experimental traces for our tests (#3567) 2020-08-28 10:51:55 -07:00
chromium chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
electron chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
firefox chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
fixtures test: always setUnderTest in index.js, rename to setDevMode (#3662) 2020-08-27 21:08:33 -07:00
accessibility.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
autowaiting-basic.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
autowaiting-no-hang.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browser.spec.ts test: introduce global setup (#3544) 2020-08-20 12:51:05 -07:00
browsercontext-add-cookies.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-basic.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-clearcookies.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-cookies.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-credentials.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-csp.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-device.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-expose-function.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-locale.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-page-event.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-route.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-timezone-id.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-user-agent.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-viewport-mobile.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsercontext-viewport.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsertype-basic.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsertype-connect.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsertype-launch-server.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
browsertype-launch.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
capabilities.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
channels.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
check.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
checkCoverage.js test runner: remove dependencies on playwright (#3539) 2020-08-19 17:47:24 -07:00
chromium-css-coverage.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
chromium-js-coverage.spec.ts test: Fix Chromium JSCoverage reportAnonumousScripts test (#3641) 2020-08-26 08:59:07 -07:00
click-react.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
click-timeout-1.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
click-timeout-2.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
click-timeout-3.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
click-timeout-4.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
click.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
coverage.js feat(testrunner): allow unexpected passes (#3665) 2020-08-28 00:32:00 -07:00
defaultbrowsercontext-1.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
defaultbrowsercontext-2.spec.ts test: make some tests as flaky (#3672) 2020-08-28 10:03:52 -07:00
dialog.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
dispatchevent.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
download.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
downloads-path.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
elementhandle-bounding-box.spec.ts test: introduce global setup (#3544) 2020-08-20 12:51:05 -07:00
elementhandle-click.spec.ts test: convert rename options to parameters, remove options magic (#3543) 2020-08-19 21:32:12 -07:00
elementhandle-content-frame.spec.ts test: convert rename options to parameters, remove options magic (#3543) 2020-08-19 21:32:12 -07:00
elementhandle-convenience.spec.ts test: convert rename options to parameters, remove options magic (#3543) 2020-08-19 21:32:12 -07:00
elementhandle-eval-on-selector.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
elementhandle-misc.spec.ts test: convert rename options to parameters, remove options magic (#3543) 2020-08-19 21:32:12 -07:00
elementhandle-owner-frame.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
elementhandle-press.spec.ts test: convert rename options to parameters, remove options magic (#3543) 2020-08-19 21:32:12 -07:00
elementhandle-query-selector.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
elementhandle-screenshot.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
elementhandle-scroll-into-view.spec.ts test: convert rename options to parameters, remove options magic (#3543) 2020-08-19 21:32:12 -07:00
elementhandle-select-text.spec.ts test: introduce global setup (#3544) 2020-08-20 12:51:05 -07:00
elementhandle-type.spec.ts test: convert rename options to parameters, remove options magic (#3543) 2020-08-19 21:32:12 -07:00
elementhandle-wait-for-element-state.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
emulation-focus.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
eval-on-selector-all.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
eval-on-selector.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
fixtures.spec.ts test: add some tests for remote connect (#3614) 2020-08-25 19:09:30 -07:00
focus.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
frame-evaluate.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
frame-frame-element.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
frame-goto.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
frame-hierarchy.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
geolocation.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
headful.spec.ts test: mark "headless should be able to read cookies written by headful" as flaky on firefox (#3673) 2020-08-28 10:38:13 -07:00
ignorehttpserrors.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
interception.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
jshandle-as-element.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
jshandle-evaluate.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
jshandle-json-value.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
jshandle-properties.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
jshandle-to-string.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
keyboard.spec.ts feat(testrunner): delete types.d.ts (#3551) 2020-08-21 09:53:02 -07:00
launcher.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
logger.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
mouse.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
navigation.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
network-request.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
network-response.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-add-init-script.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-add-script-tag.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-add-style-tag.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-basic.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-emulate-media.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-evaluate-handle.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-evaluate.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-event-console.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-event-crash.spec.ts test: make some tests as flaky (#3672) 2020-08-28 10:03:52 -07:00
page-event-network.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-event-pageerror.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-event-popup.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-event-request.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-expose-function.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-fill.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-goto.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-history.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-network-idle.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-route.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-screenshot.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-select-option.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-set-content.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-set-extra-http-headers.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-set-input-files.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-wait-for-load-state.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-wait-for-navigation.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-wait-for-request.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
page-wait-for-response.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
pdf.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
permissions.spec.ts test: make some tests as flaky (#3672) 2020-08-28 10:03:52 -07:00
playwright.fixtures.ts feat(trace): experimental traces for our tests (#3567) 2020-08-28 10:51:55 -07:00
popup.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
proxy.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
queryselector.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
remoteServer.fixture.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
request-continue.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
request-fulfill.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
run_static_server.js test: convert rename options to parameters, remove options magic (#3543) 2020-08-19 21:32:12 -07:00
screencast.spec.ts test: make some tests as flaky (#3672) 2020-08-28 10:03:52 -07:00
selectors-css.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
selectors-misc.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
selectors-register.spec.ts test: convert rename options to parameters, remove options magic (#3543) 2020-08-19 21:32:12 -07:00
selectors-text.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
setup.ts feat(testrunner): expose test and runner config to fixtures (#3580) 2020-08-22 16:44:56 -07:00
slowmo.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
snapshot.spec.ts feat(trace): experimental traces for our tests (#3567) 2020-08-28 10:51:55 -07:00
test-runner-helper.ts chore(test-runner): move into its own folder and typescript project (#3548) 2020-08-20 16:04:27 -07:00
test-runner-overrides-1.spec.ts chore(test-runner): move into its own folder and typescript project (#3548) 2020-08-20 16:04:27 -07:00
test-runner-overrides-2.spec.ts test: allow overriding test fixtures, add some test runner tests (#3463) 2020-08-13 22:35:54 -07:00
test-runner.spec.ts test: take a screenshot upon failure example (#3556) 2020-08-20 17:45:10 -07:00
tsconfig.json feat(testrunner): delete types.d.ts (#3551) 2020-08-21 09:53:02 -07:00
utils.js test: run tests by ordinals, not ranges (#3497) 2020-08-17 10:33:42 -07:00
wait-for-function.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
wait-for-selector-1.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
wait-for-selector-2.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00
workers.spec.ts chore(test): run eslint on tests (#3638) 2020-08-28 04:20:29 -07:00