Dmitry Gozman
1c39689dd6
api(videos): introduce a single recordVideo option bag ( #4309 )
...
api(videos): introduce a single recordVideo option bag
Currently contains `dir` and `size`, previously known as
`videosPath` and `videoSize`.
2020-11-02 19:42:05 -08:00
Pavel Feldman
ba7949359f
chore: roll folio to 0.3.13 ( #4215 )
2020-10-23 12:39:46 -07:00
Pavel Feldman
3cceb14e29
test(beforeunload): add failing beforeunload test ( #4188 )
2020-10-20 08:55:01 -07:00
Pavel Feldman
381f49a0b8
chore: roll folio to 0.3.11 ( #4130 )
2020-10-13 22:40:25 -07:00
Pavel Feldman
9daedaca08
chore: roll test fixtures, replace trace w/ video ( #4129 )
2020-10-13 13:18:36 -07:00
Pavel Feldman
5804131c99
chore: bump folio to 0.3.9, use fixture timeout ( #4118 )
2020-10-13 12:17:23 -07:00
Arjun Attam
8ad340479d
fix(test): update path for screenshots on failure ( #4120 )
2020-10-12 21:51:17 -07:00
Pavel Feldman
c2adc98cb0
chore: roll folio to 0.3.8 ( #4113 )
2020-10-12 13:48:56 -07:00
Dmitry Gozman
46b14bc740
chore: roll folio to 0.3.6 ( #4110 )
2020-10-12 09:16:02 -07:00
Dmitry Gozman
e403fd3912
test: update fixtures to new syntax ( #4063 )
...
- Some simplifications around defineParameter.
- overrideTestFixtures must be chained as well.
2020-10-05 21:40:56 -07:00
Pavel Feldman
0db09f8ed4
test: roll test runner to 0.9.20 ( #4062 )
2020-10-05 17:03:24 -07:00
Dmitry Gozman
4a77363af7
api: update videos api, hide tracing ( #4015 )
2020-10-01 11:06:19 -07:00
Dmitry Gozman
13d48da84a
test: record trace/videos on retries ( #4009 )
2020-09-30 16:52:21 -07:00
Pavel Feldman
de1e63dff1
test: roll test runner 0.9.16 ( #3998 )
2020-09-29 11:51:00 -07:00
Pavel Feldman
109688a066
chore: split playwright.fixtures into files (6) ( #3988 )
2020-09-26 16:05:58 -07:00
Pavel Feldman
423485e0a4
chore: split playwright.fixtures into files (5) ( #3986 )
2020-09-26 14:16:22 -07:00
Pavel Feldman
0ee9050f1b
chore: split playwright.fixtures into files (4) ( #3985 )
2020-09-26 10:59:27 -07:00
Pavel Feldman
cef27d620b
chore: split playwright.fixtures into files (3) ( #3984 )
2020-09-25 23:30:46 -07:00
Pavel Feldman
76be9540d1
chore: split playwright.fixtures into files (2) ( #3983 )
2020-09-25 21:43:52 -07:00
Pavel Feldman
5b9f489e55
chore: split playwright.fixtures into files ( #3982 )
2020-09-25 19:27:09 -07:00
Pavel Feldman
970b011cba
chore: roll @playwright/test to 0.9.6 ( #3977 )
2020-09-25 12:52:06 -07:00
Dmitry Gozman
fe41bbd303
test: enable videos on tracing bots ( #3930 )
2020-09-24 04:38:01 -07:00
Pavel Feldman
4aaf3b7596
test: roll test runner to 0.3.20 ( #3963 )
2020-09-23 14:52:06 -07:00
Pavel Feldman
2d1cabdd3f
test: roll test runner to 0.3.18 ( #3949 )
2020-09-22 12:52:39 -07:00
Pavel Feldman
c2d9af8618
test: roll test runner to 0.3.17 ( #3927 )
2020-09-20 17:43:17 -07:00
Dmitry Gozman
df777344a3
api(video): simplify video api ( #3924 )
...
- This leaves just `recordVideos` and `videoSize` options on the context.
- Videos are saved to `artifactsPath`. We also save their ids to trace.
- `context.close()` waits for the processed videos.
2020-09-18 17:36:43 -07:00
Dmitry Gozman
4e2d75d9f7
test: migrate some helpers to fixtures, use testOutputDir ( #3926 )
2020-09-18 15:52:14 -07:00
Dmitry Gozman
0ade6af689
api(trace): introduce artifacts options ( #3914 )
...
api(trace): introduce artifacts options
This introduces launch({ artifactsPath }) and newContext({ relativeArtifactsPath, recordTrace }) options.
- artifactsPath option controls the directory where all artifacts go. If not passed, artifacts are not collected.
- relativeArtifactsPath can be used to put context-specific artifacts into a subfolder. If not passed, shared artifactsPath is used.
- recordTrace controls trace recording.
We also expose trace types under playwright/types/trace.d.ts.
In the follow up:
- videos will be put into artifactsPath;
- downloads will be put into artifactsPath, or keep using existing downloadsPath when artifactsPath is not specified.
2020-09-18 11:54:00 -07:00
Dmitry Gozman
01a4060665
chore: move action instrumentation per-context ( #3908 )
...
This allows tracing to expose plugin-like api.
This also remove Progress -> ActionMetadata dependency, leaving
Progress a low-level utility.
2020-09-17 09:32:54 -07:00
Pavel Feldman
96629304ff
test: make platform a parameter ( #3910 )
2020-09-16 21:36:36 -07:00
Pavel Feldman
823a7a517e
test: roll test runner to 0.3.12 ( #3895 )
2020-09-16 10:04:39 -07:00
Max Schmitt
c175dad290
chore: fix compatibility to the domain module ( #3851 )
2020-09-11 14:40:49 -07:00
Pavel Feldman
f94df318d5
chore: roll test runner to 0.3.9 ( #3847 )
2020-09-11 10:02:07 -07:00
Pavel Feldman
a597004780
chore: roll test runner to 0.3.5 ( #3832 )
2020-09-10 21:31:46 -07:00
Pavel Feldman
c83b2da54f
chore: revert isDevMode into isUnderTest ( #3785 )
2020-09-06 21:36:22 -07:00
Dmitry Gozman
675ce00432
chore: introduce "instrumentation" that is used for debug and trace ( #3775 )
2020-09-04 16:31:52 -07:00
Pavel Feldman
8df1fe47bc
test: explicitly require expect ( #3755 )
2020-09-03 09:43:08 -07:00
Pavel Feldman
7ad5bd90a4
test: roll test-runner to 0.2.9 ( #3752 )
2020-09-02 23:45:42 -07:00
Pavel Feldman
175fc52747
test: roll test-runner to 0.2.8 ( #3748 )
2020-09-02 21:43:38 -07:00
Dmitry Gozman
a58812523c
test: call setDevMode in wire tests ( #3678 )
2020-09-02 10:19:03 -07:00
Joel Einbinder
3cc91093a1
chore(testrunner): move out of the repo ( #3687 )
2020-08-29 08:27:32 -07:00
Dmitry Gozman
e5ff283a40
fix(trace): only enable on separate tracing bots ( #3677 )
2020-08-28 13:50:06 -07:00
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
Joel Einbinder
e2057fb8bb
chore(test): run eslint on tests ( #3638 )
2020-08-28 04:20:29 -07:00
Dmitry Gozman
5c0f93301d
test: always setUnderTest in index.js, rename to setDevMode ( #3662 )
...
Root index.js is only used for local development, so
assuming dev mode there is fine. This way we do not have
to worry about calling setUnderTest early enough.
2020-08-27 21:08:33 -07:00
Joel Einbinder
1a5f22d327
fix(test): import playwright types with import type ( #3647 )
...
* fix(test): import playwright types with import type
* add a check
2020-08-26 14:16:35 -07:00
Pavel Feldman
a20bb949ea
chore(testrunner): introduce test result, reuse it in ipc ( #3644 )
2020-08-26 14:14:23 -07:00
Joel Einbinder
f9eeb2984a
fix playwright being imported before toImpl could be registered ( #3632 )
2020-08-26 02:52:23 -07:00
Pavel Feldman
e215461898
chore: split tests for faster execution ( #3613 )
2020-08-24 20:26:06 -07:00
Dmitry Gozman
3b2f14fcee
test: fix wire tests ( #3609 )
2020-08-24 17:32:55 -07:00