Dmitry Gozman
40901e8b9a
feat(test runner): test.skip(title, testFunction) syntax ( #7922 )
2021-07-29 14:33:37 -07:00
Pavel Feldman
2c095294c5
feat(locators): introduce allTextContents, allInnerTexts ( #7920 )
2021-07-29 14:09:35 -07:00
Dmitry Gozman
dd0b089d13
feat(test runner): createContext fixture for multi-context scenarios ( #7779 )
2021-07-29 14:03:58 -07:00
Pavel Feldman
1807142eb7
feat(expect): even more matchers ( #7902 )
2021-07-29 07:33:19 -07:00
Pavel Feldman
9e07029973
chore: relayout matchers ( #7901 )
2021-07-28 22:30:37 -07:00
Pavel Feldman
3187ffdebf
feat(expect): add more matchers ( #7891 )
2021-07-28 15:44:44 -07:00
Dmitry Gozman
3f0485486d
feat(test runner): show errors from interrupted tests when available ( #7874 )
...
This shows the exact operation that is timing out (like click) when
user hits Ctrl+C.
2021-07-28 15:43:37 -07:00
Pavel Feldman
446d3f1018
chore: update locator docs, make it not force-visible ( #7888 )
2021-07-28 13:30:30 -07:00
Pavel Feldman
49e9f8c15e
feat(expect): add text and true matchers ( #7873 )
2021-07-28 12:07:11 -07:00
Yury Semikhatsky
bd1549075d
docs: add missing Frame.fill.strict ( #7880 )
2021-07-28 05:18:04 -07:00
Pavel Feldman
b8dc0b9156
feat(expect): implement toMatchText ( #7871 )
2021-07-27 20:26:12 -07:00
Dmitry Gozman
34b96a5759
chore: generate JSDoc for testing types from md reference ( #7799 )
2021-07-27 19:10:55 -07:00
Pavel Feldman
cc43f9339f
feat(locators): implement last,nth ( #7870 )
2021-07-27 15:58:18 -07:00
Pavel Feldman
b9aad5eb86
chore: move locators to strict selectors ( #7866 )
2021-07-27 15:27:36 -07:00
Pavel Feldman
0a6ae11da1
feat(strict): introduce strict mode ( #7851 )
2021-07-26 22:00:23 -07:00
Pavel Feldman
827fb80465
feat(locator): implement element locators ( #7808 )
2021-07-22 21:37:20 -07:00
Max Schmitt
acdc531efc
chore: migrate connect/overCDP to options instead of params ( #7606 )
2021-07-22 16:55:23 +02:00
Joel Einbinder
483b7d6a0d
feat(test-runner): mark launch as experimental ( #7757 )
2021-07-21 09:51:27 -05:00
Joel Einbinder
051dc332a6
feat(test-runner): use require to resolve reporters ( #7749 )
2021-07-20 15:03:01 -05:00
Pavel Feldman
1ab41babb1
docs: fix the downloadsPath docs ( #7726 )
...
Closes #7707
2021-07-19 14:56:28 -07:00
Dmitry Gozman
2ac0c59156
feat(test-runner): rename Test to TestCase ( #7725 )
2021-07-19 14:54:18 -07:00
Joel Einbinder
56ada374df
feat(dragAndDrop): page.dragAndDrop ( #6910 )
2021-07-19 12:42:55 -05:00
Max Schmitt
a8661330de
docs(browser): make Chromium tracing vs. PW tracing more clear ( #7713 )
...
Co-authored-by: Andrey Lushnikov <aslushnikov@gmail.com>
2021-07-19 12:43:57 +02:00
Dmitry Gozman
66ea613c4d
feat(test-runner): small changes to Reporter api ( #7709 )
...
- `TestResult.startTime`
- `Suite.location` is optional now
- `Test.status()` renamed to `Test.outcome()` to differentiate against a
`Test.expectedStatus` and `TestResult.status` of the different type.
2021-07-18 17:40:59 -07:00
Dmitry Gozman
167db03f05
feat(test-runner): export reporter api as @playwright/test/reporter
( #7692 )
2021-07-16 21:15:03 -07:00
Pavel Feldman
bde764085c
feat(test-runner): introduce attachments ( #7685 )
2021-07-16 13:48:37 -07:00
Andrey Lushnikov
272759f296
feat(chromium): roll Chromium to another new version ( #7676 )
2021-07-16 09:03:42 -07:00
Max Schmitt
86b21d5299
feat: add High DPI and Low DPI Desktop device descriptors ( #7531 )
2021-07-15 22:16:27 +02:00
Max Schmitt
6cc2fe178e
feat(test-runner): migrate to launch config/server ( #7603 )
2021-07-15 01:19:45 +02:00
Dmitry Gozman
d1170b30fc
Revert "api: remove timeout option from isVisible and isHidden methods ( #7414 )" ( #7600 )
...
This reverts commit 9f71c96740
.
2021-07-14 10:46:00 +02:00
Dmitry Gozman
2734066956
docs(test-runner): document configuration options ( #7572 )
2021-07-12 17:18:02 -07:00
Joel Einbinder
0f118618d4
fix(types): fix typo in event description ( #7543 )
2021-07-09 18:21:47 -05:00
Dmitry Gozman
77deca1d6b
feat(test runner): export testInfo.data ( #7525 )
...
This is a key-value storage for any information that goes into the report.
Also export JSONReport types.
2021-07-08 17:16:36 -07:00
Joel Einbinder
e4698b5f6a
fix(types): add better descriptions for event emitter methods ( #6417 )
2021-07-08 11:24:46 -05:00
Max Schmitt
98bcf26656
feat(test-runner): add webServer ( #7368 )
2021-07-07 20:19:42 +02:00
Yury Semikhatsky
a481de0871
docs: add a note on download file name ( #7473 )
2021-07-07 10:37:24 -07:00
Max Schmitt
371aa3dab2
feat: add browser.newContext({ baseUrl }) ( #7409 )
2021-07-06 21:16:37 +02:00
Max Schmitt
b846ddda04
feat(download): introduce Download.cancel ( #7462 )
2021-07-06 09:38:50 +02:00
Dmitry Gozman
9f71c96740
api: remove timeout option from isVisible and isHidden methods ( #7414 )
...
It is unused and confusing.
2021-07-01 13:30:16 -07:00
Max Schmitt
027fc4c0b4
chore: hide request interception for 1.13 ( #7425 )
2021-07-01 18:33:47 +02:00
Max Schmitt
9f3bccc200
fix(test-runner): move OverriddenExpectProperties outside the namespace ( #7319 )
2021-06-25 17:27:39 +02:00
Pavel Feldman
e6bf0a07fe
feat(force): add fill, selectOption, selectText ({force}) ( #7286 )
2021-06-24 08:18:09 -07:00
Joel Einbinder
ba3f0ff6f5
fix(test-runner): remove unimplemented jest expect types ( #7292 )
2021-06-24 02:08:02 -07:00
Pavel Feldman
5732307280
feat(inputValue): implement *.inputValue() ( #7285 )
2021-06-23 22:19:20 -07:00
Max Schmitt
b3cc683e6b
chore hide Download._cancel ( #7282 )
2021-06-23 23:20:36 +02:00
Max Schmitt
4d0d3924f0
fix(test-runner): allow viewport null values ( #7225 )
2021-06-21 20:26:14 +02:00
Pavel Feldman
ea4eebeb2d
feat(test-runner): document tagging, implement grep-invert ( #7227 )
2021-06-18 17:56:59 -07:00
Yury Semikhatsky
c0cd2d4579
feat: response interception ( #7122 )
2021-06-18 11:04:48 -07:00
Ross Wollman
219e5138be
feat(response): expose connection details in API ( #7150 )
2021-06-17 13:04:55 -07:00
Dmitry Gozman
5e471a3ece
feat(test runner): add type to TestInfo.error ( #7207 )
...
It has a very special `TestError` type, but we say it's `any` for some reason.
2021-06-17 12:14:28 -07:00
Pavel Feldman
82a50b0e1d
fix(test-runner): property handle artifacts in context of preserveOutput ( #7181 )
2021-06-16 16:05:30 -07:00
Andrey Lushnikov
0cfea9a623
feat(chromium): roll to r891964 ( #7185 )
2021-06-16 16:00:54 -07:00
Pavel Feldman
184f2c2e93
feat(test-runner): allow specifying video size ( #7158 )
2021-06-16 07:51:54 -07:00
Dmitry Gozman
b625a04adc
types: move exported objects from index.d.ts to overrides.d.ts ( #7152 )
...
This way we generate these types right away, without duplicating them everywhere.
2021-06-15 15:06:18 -07:00
Dmitry Gozman
742cce3a1d
feat(test runner): configurable reportSlowTests ( #7120 )
...
Also splits tests by projects and reports them with nice relative paths.
2021-06-14 22:45:58 -07:00
Pavel Feldman
970bb6a70d
feat(test-runner): allow setting pixel match threshold for project ( #7123 )
2021-06-14 21:52:10 -07:00
Max Schmitt
a3a9ccad6f
fix(test-runner): do not require esModuleInterop=true ( #7100 )
2021-06-14 21:58:10 +02:00
Max Schmitt
64b23040dc
chore: use new links in generated types ( #7102 )
2021-06-14 17:13:28 +02:00
Peng-Yu Chen
5f6d4a7b73
feat(download): adding a new Download._cancel
method ( #6236 )
2021-06-12 22:23:22 +02:00
Max Schmitt
2b8ea73048
docs(test-runner): fixed wrong function calls ( #7080 )
2021-06-11 16:20:13 -07:00
Andrey Lushnikov
8a8b3932f8
Revert "fix(test-runner): support passing slowMo option ( #6991 )" ( #7077 )
...
This reverts commit 178489d091
.
Reason for revert: this clashes with testrunner options.
2021-06-11 16:19:50 -07:00
Andrey Lushnikov
f52290d4ea
Revert "feat: add defaultTimeout browser context configuration option ( #6944 )" ( #7057 )
...
This reverts commit 617dfdef9e
.
It turns out this might conflict with our bright testrunner future.
2021-06-10 18:38:56 -07:00
Amit Abershitz
617dfdef9e
feat: add defaultTimeout browser context configuration option ( #6944 )
...
Fixes #6940
Co-authored-by: Amit Abershitz <aabershitz@proofpoint.com>
Co-authored-by: Andrey Lushnikov <aslushnikov@gmail.com>
2021-06-10 18:10:20 -07:00
Max Schmitt
178489d091
fix(test-runner): support passing slowMo option ( #6991 )
...
Fixes #6984
Reverts #6967
2021-06-09 14:02:05 -07:00
Pavel Feldman
021f51cc1f
feat(trace): add a trace option into the test runner ( #6961 )
...
Co-authored-by: Andrey Lushnikov <aslushnikov@gmail.com>
2021-06-08 11:22:07 -07:00
Max Schmitt
42a9e4a0d3
docs(mobile): make experimental Android support more present ( #6932 )
2021-06-07 17:04:18 +02:00
Dmitry Gozman
8c13f679b7
fix(test runner): remove folio/jest namespaces in expect matchers ( #6930 )
2021-06-07 08:02:01 -07:00
Dmitry Gozman
b556ee6f5b
chore: brush up playwright-test types ( #6928 )
2021-06-06 20:18:47 -07:00
Dmitry Gozman
f745bf1fbc
chore: bring in folio source ( #6923 )
...
- Source now lives at `src/test`.
- Former folio tests live at `tests/playwright-test`.
- We use `src/test/internal.ts` that exposes base test without
Playwright fixtures for most tests (to avoid modifications for now).
- Test types live in `types/testFoo.d.ts`.
- Stable test runner is installed to `tests/config/test-runner` during `npm install`.
- All deps including test-only are now listed in `package.json`.
Non-test deps must also be listed in `build_package.js` to get included.
2021-06-06 17:09:53 -07:00
Dmitry Gozman
82041b2f74
test: roll to folio@0.4.0-alpha28 ( #6918 )
2021-06-04 20:54:58 -07:00
Dmitry Gozman
3de3a88930
feat(test): introduce npx playwright test
( #6816 )
2021-06-03 08:07:55 -07:00
Pavel Feldman
b2143a951b
chore: make tracing zero config ( #6859 )
2021-06-02 22:00:34 -07:00
Pavel Feldman
d28f45b6ee
api(tracing): export -> stop({path}) ( #6802 )
2021-06-02 10:04:25 -07:00
Max Schmitt
79b244a2f4
chore: use bash instead of sh in code blocks ( #6847 )
2021-06-02 18:23:06 +02:00
Andrey Lushnikov
3c3a7f9293
feat(chromium): roll Chromium to r888113 ( #6832 )
...
References #6818 , references #6390
2021-06-01 18:06:44 -07:00
Ross Wollman
c8c849e164
docs(page): add TypeScript $eval type-hint notes ( #6693 )
2021-06-01 22:50:31 +02:00
Max Schmitt
c8c77e4df0
docs: use sha256 for exposeFunction everywhere ( #6805 )
2021-05-31 15:47:14 -07:00
Pavel Feldman
9233a61bda
doc: text nit
2021-05-26 16:22:38 -07:00
Pavel Feldman
fb3c6e50d4
api(dotnet): remove whenall ( #6768 )
2021-05-26 15:50:42 -07:00
Pavel Feldman
f7f08c9c02
api(dotnet): normalize enums, remove browser channel enum ( #6738 )
2021-05-25 14:33:27 -07:00
gboer
15bf6a0a1b
docs(class-page.md): Add additional clarification on requestFailed event ( #6724 )
2021-05-25 12:58:48 -07:00
Max Schmitt
ba29e99ace
feat: added reduced motion media query emulation ( #6646 )
2021-05-22 01:56:09 +02:00
Andrey Lushnikov
d1d49b3412
feat(chromium): roll Chromium to r884693 ( #6686 )
2021-05-21 11:05:44 -07:00
Joel Einbinder
447a0c4bb8
feat(types): export ScreenshotOptions ( #6419 )
2021-05-20 09:22:01 -07:00
Max Schmitt
202511d60a
docs: chromiumSandbox is by default false ( #6662 )
2021-05-20 00:16:55 +02:00
Joel Einbinder
754ee13c93
feat(electron): accept BrowserContextOptions in electron.launch ( #6621 )
2021-05-19 06:56:29 -07:00
Pavel Feldman
bc18529191
docs(ff): temporarily remove ff-stable reference ( #6585 )
2021-05-14 12:03:38 -07:00
Sébastien Règne
e87fbfcc1d
feat(download): add Page in Download ( #6501 )
2021-05-13 14:18:21 -07:00
Pavel Feldman
bdb4aefc8f
docs(tracing): remove the relative link
2021-05-13 11:24:53 -07:00
Vignesh Shanmugam
4b3e5e5c17
feat(network): expose network events via browser context ( #6370 )
...
- fix #6340
- Exposes all the network related events (request, response, requestfailed, requestfinished) through the browser context to allow for managing network activity even if the is any navigations through popups or to new tabs which could result in creation of multiple page objects.
2021-05-13 10:29:14 -07:00
Pavel Feldman
1a39843df5
docs: follow up on adding trace dir, unify launch options ( #6545 )
2021-05-12 16:16:36 -07:00
Pavel Feldman
21cb726b7d
chore(tracing): expose tracing api ( #6523 )
2021-05-12 12:21:54 -07:00
Max Schmitt
8af8b6340d
docs: add ref to waitForSelector from querySelector ( #6514 )
2021-05-12 08:07:49 +02:00
Sébastien Règne
33823a9143
docs(download): improve documentation ( #6486 )
2021-05-11 13:27:50 -07:00
Max Schmitt
e0aaef5eab
docs: get rid of dollar sign prefix in code snippets ( #6494 )
2021-05-11 20:47:48 +02:00
Fili
f1a888de02
feat: support Moto G4 device in emulated devices for performance testing ( #5946 )
...
Adding Moto G4 to deviceDescriptors.
2021-05-10 09:33:11 -07:00
Max Schmitt
5f7739962c
chore: get rid of trailing spaces in types.d.ts ( #6481 )
2021-05-10 16:26:11 +02:00
Michael Rienstra
8737207d5a
feat(devices): add more Android device descriptions ( #6413 )
...
Adds device descriptions for:
- Galaxy S8
- Galaxy S9+
- Galaxy Tab S4
- Pixel 3
- Pixel 4
These devices are regarded as worthy of targeting by BrowserStack.
Sources (both have identical data for these 5 devices):
1. https://github.com/aerokube/moon-deploy/blob/master/moon-local.yaml#L199
2. https://www.danhendricks.com/2018/04/adding-iphone-galaxy-chrome-mobile-emulated-devices/#heading_device_data
2021-05-05 14:02:28 -07:00
Darío Kondratiuk
9e36f5cc26
docs(consoleMessage): add missing console message comments ( #6320 )
...
Co-authored-by: Max Schmitt <max@schmitt.mx>
2021-05-05 13:18:07 -07:00
Jason Harwig
42a5566653
fix(types): fix waitForSelector typing to not union null when appropriate ( #6344 )
...
Previously when options were defined, but no `state` key was provided,
the types would return null as an option. Even though the default state
is `visible` and shouldn't allow `null`.
Tests updated to fail appropriately and new tests added for this case.
2021-05-05 13:03:27 -07:00