playwright/utils
Ross Wollman 854f321532
feat(api): add explicit async testInfo.attach (#10121)
feat(api): add explicit async testInfo.attach

We add an explicit async API for attaching file paths (and Buffers) to
tests that can be awaited to help users ensure they are attaching files
that actually exist at both the time of the invocation and later when
reporters (like the HTML Reporter) run and package up test artifacts.

This is intended to help surface attachment issues as soon as possible
so you aren't silently left with a missing attachment
minutes/days/months later when you go to debug a suddenly breaking test
expecting an attachment to be there.

NB: The current implemntation incurs an extra file copy compared to
manipulating the raw attachments array. If users encounter performance
issues because of this, we can consider an option parameter that uses
rename under the hood instead of copy. However, that would need to be
used with care if the file were to be accessed later in the test.
2021-11-23 09:30:53 -08:00
..
build chore: open trace.playwright.dev (#10475) 2021-11-22 10:41:22 -08:00
docker chore: clean up docker image (#10260) 2021-11-11 15:35:57 -08:00
doclint fix(dotnet): correctly mark members as deprecated (#9977) 2021-11-23 03:00:12 -05:00
flakiness-dashboard devops: flakiness dashboard to support new folio report (#6677) 2021-05-20 09:46:50 -07:00
generate_types feat(api): add explicit async testInfo.attach (#10121) 2021-11-23 09:30:53 -08:00
linux-browser-dependencies fix: support even older node 12 (#9718) 2021-10-22 15:59:52 -04:00
protocol-types-generator fix: protocol generation in monorepo (#9513) 2021-10-14 11:14:50 -07:00
testserver test: unflake "should timeout in socket while connecting" (#9093) 2021-09-22 17:08:49 -07:00
avd_install.sh fix(android): fix android tests (4) (#8211) 2021-08-16 08:13:02 -07:00
avd_recreate.sh fix(android): fix android tests (4) (#8211) 2021-08-16 08:13:02 -07:00
avd_start.sh fix(android): fix android tests (4) (#8211) 2021-08-16 08:13:02 -07:00
avd_test.js feat(scopes): make page a scope (#4385) 2020-11-10 14:47:26 -08:00
build_android_driver.sh chore(android): respect timeout, add build script (#4690) 2020-12-11 23:35:25 -08:00
bump_package_versions.js chore: add script to update package/lock.json (#9919) 2021-11-01 20:09:23 +01:00
check_chromium_cdn.js chore: fixes to helper scripts 2021-11-17 17:02:29 -08:00
check_deps.js feat(tracing): make context.request appear in the trace (#9555) 2021-10-15 15:22:49 -07:00
copyright.js chore(eslint): lint for copyrights on files (#2858) 2020-07-07 11:12:45 -07:00
draft_release_notes.sh chore: udpate scripts that generates release draft (#5556) 2021-02-24 13:26:44 -08:00
generate_channels.js chore: use channel traits (#10389) 2021-11-17 15:26:01 -08:00
generate_dotnet_channels.js chore: dotnet connect + generator 2021-08-16 12:49:25 -07:00
lint_tests.js chore: add npm run lint-tests (#10252) 2021-11-11 13:27:50 -08:00
list_closed_issues.sh chore: add script to fetch closed bugs since git commit (#2066) 2020-04-30 17:57:45 -07:00
list_packages.js chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
markdown.js docs: fix markdown parser swallowing lines after code snippets (#8904) 2021-09-13 18:48:16 -07:00
pack_package.js chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
prepare_packages.js devops: release create-playwright over publish infra (#9683) 2021-10-22 10:13:49 +02:00
print_versions.js chore: fix //utils/print_versions.js (#9647) 2021-10-20 02:20:46 -07:00
publish_all_packages.sh chore: be on the safe side with publishing release candidate (#10363) 2021-11-16 15:38:14 -08:00
roll_browser.js test: move grid tests to installation-tests (#10418) 2021-11-18 15:32:09 -08:00
upload_flakiness_dashboard.sh devops: better upload flakiness dashboard upload script (#6176) 2021-04-19 08:39:10 -07:00
video_stress.js fix(video): reduce buffering in ffmpeg, avoid overbooking cpu (#8786) 2021-09-09 12:41:06 -07:00