Dmitry Gozman
6fe1cd9812
chore: move protocol files to src/protocol ( #3571 )
2020-08-21 18:46:11 -07:00
Pavel Feldman
398bd477ac
test: translate tests into ts, extract mocha ( #3565 )
2020-08-21 17:14:11 -07:00
Dmitry Gozman
57e8617474
chore: refactor impl-side events to be per-class ( #3569 )
2020-08-21 16:26:33 -07:00
Joel Einbinder
8ae3c4be06
feat(testrunner): delete types.d.ts ( #3551 )
2020-08-21 09:53:02 -07:00
Yury Semikhatsky
1f0e9db0a6
feat(firefox): support context-level screencast api ( #3555 )
2020-08-20 19:49:30 -07:00
Yury Semikhatsky
7a492831a1
fix(test): fix the popup test on Windows ( #3558 )
2020-08-20 19:48:56 -07:00
Pavel Feldman
83f399534c
test: take a screenshot upon failure example ( #3556 )
2020-08-20 17:45:10 -07:00
Yury Semikhatsky
071931ebb1
feat(firefox): bump to 1166 ( #3557 )
2020-08-20 16:51:17 -07:00
Dmitry Gozman
e2bb6a07cd
fix(click): allow clicking 1x1 sized elements ( #3538 )
...
One by one seems like a resonable minimum size for clicking.
It is not surprising to see a 1x1 native accessible control
that is covered by a custom control that handles input instead.
2020-08-20 16:49:19 -07:00
Joel Einbinder
012f9425bf
chore(test-runner): move into its own folder and typescript project ( #3548 )
2020-08-20 16:04:27 -07:00
Dmitry Gozman
4c5635434a
fix(permissions): browserContext.grantPermissions to respect the origin ( #3542 )
...
Due to wrong type usage, we ignored the origin while granting permissions.
Switching to generated types revealed this issue. We should follow up
with switching all dispatchers to the generated types.
2020-08-20 14:19:27 -07:00
Pavel Feldman
db2e66aa76
test: introduce global setup ( #3544 )
2020-08-20 12:51:05 -07:00
Max Schmitt
e32a496e2e
devops(browser-roll): fix fixture tests ( #3547 )
2020-08-20 11:10:57 -07:00
Pavel Feldman
86815d70e0
test: convert rename options to parameters, remove options magic ( #3543 )
2020-08-19 21:32:12 -07:00
Pavel Feldman
30f4c0c9fe
test runner: remove dependencies on playwright ( #3539 )
2020-08-19 17:47:24 -07:00
Dmitry Gozman
18292325b6
api: add waitForElementState('disabled') ( #3537 )
...
Allows waiting for the element to be disabled.
2020-08-19 17:20:10 -07:00
Dmitry Gozman
0a22e2758a
fix(chromium): disable lazy loading iframes ( #3535 )
...
These do not play nicely with our "page is loaded when all frames
are loaded" logic.
2020-08-19 15:58:13 -07:00
Max Schmitt
e679b82339
fix(devops): auto roll tests ( #3536 )
2020-08-19 15:04:52 -07:00
Pavel Feldman
a65b0bba5d
test: merge test options into options ( #3531 )
2020-08-19 13:30:54 -07:00
Dmitry Gozman
9ac1bbc2a5
chore: remove more paths and url matches from the server side ( #3528 )
2020-08-19 13:27:58 -07:00
Yury Semikhatsky
83de0071c9
feat(screencast): add start/stop events on context ( #3483 )
2020-08-19 12:45:31 -07:00
Pavel Feldman
8989d66bda
test: introduce options ( #3525 )
2020-08-18 23:00:45 -07:00
Joel Einbinder
97157520a6
feat(slowmo): only slowmo once per user action ( #3012 )
...
This changes the behavior of slowmo to slow down user actions instead of every protocol command. This makes slowmo a lot more predictable. Without this, there is no way to set slowmo to a good value without incurring a huge delay at the start of your test when it sets things up.
2020-08-18 19:13:40 -07:00
Pavel Feldman
b0667e8bc5
test: fix fit, do not rely upon mocha suite ( #3520 )
2020-08-18 18:55:26 -07:00
Dmitry Gozman
e7e8524e14
chore: remove screenshot path from the server side ( #3519 )
...
Also fixes auto-detection of mime type based on path and adds tests.
2020-08-18 18:46:56 -07:00
Dmitry Gozman
aeadf50165
chore: use HeadersArray instead of Headers object on the server side ( #3512 )
...
This simplifies implementation and avoids multiple conversions.
Also adding some tests around lowercase and wrong types.
2020-08-18 15:38:29 -07:00
Pavel Feldman
77cab8bed3
test: introduce test collector ( #3515 )
2020-08-18 14:12:31 -07:00
Pavel Feldman
510182f0b9
test: use isChromium, etc fixtures for browser name sniffing ( #3508 )
2020-08-18 12:48:32 -07:00
Joel Einbinder
b2228a660a
fix(test): disable more screenshot tests on headful firefox ( #3513 )
2020-08-18 11:39:10 -07:00
Darío Kondratiuk
5a964f7f99
tests: fix should get the same headers as the server ( #3510 )
...
`server.setRoute` won't return a promise
2020-08-18 09:58:00 -07:00
Dmitry Gozman
7a77faf194
fix(testrunner): do not override debug.log ( #3505 )
...
Otherwise, our DEBUG_FILE is ignored and we dump all DEBUG on the bots.
2020-08-17 21:02:26 -07:00
Joel Einbinder
dfa1f103af
feat(screenshot): create directories for screenshot file
2020-08-17 16:53:19 -07:00
Dmitry Gozman
0e9793c452
api: ElementHandle.waitForElementState ( #3501 )
...
This method waits for visible, hidden, stable or enabled state,
similar to the actionability checks performed before actions.
This gives a bit more control to the user. Some examples:
- Allows to wait for something to be stable before taking a screenshot.
- Allows to wait for the element to be hidden/detached after a specific action.
2020-08-17 16:22:34 -07:00
Max Schmitt
59e3326fc0
tests: add test for page.focus() in Firefox ( #3478 )
2020-08-17 16:08:47 -07:00
Dmitry Gozman
1e9c0eb705
chore: remove logger infrastructure from server side ( #3487 )
...
We do not implement LoggerSink on the server, so we can
use a simple debugLogger.
2020-08-17 14:12:31 -07:00
Pavel Feldman
3aae8c6be1
test: run tests by ordinals, not ranges ( #3497 )
2020-08-17 10:33:42 -07:00
Pavel Feldman
262e886940
test: organize golden files under __snapshots__ folder ( #3494 )
2020-08-16 19:19:52 -07:00
Andrey Lushnikov
f983432536
feat(firefox): roll firefox to r1160 ( #3468 )
...
Since this is a beta build, cookie tests are restored to the
proper non-lax-by-default behavior.
Fixes #3215
2020-08-15 17:15:21 -07:00
Pavel Feldman
c90039586d
test: restart worker upon any test failure ( #3492 )
2020-08-15 13:40:19 -07:00
Pavel Feldman
c44f841f33
test: reverse dumpio into quiet, serialize output ( #3491 )
2020-08-15 00:19:20 -07:00
Pavel Feldman
73d2dc11d7
test: encapsulate mocha into test runner ( #3490 )
2020-08-14 22:26:16 -07:00
Max Schmitt
5410c30908
chore(test): fix tests when using browser path overwrites ( #3453 )
2020-08-14 19:34:42 -07:00
Pavel Feldman
35fbd588c8
test: implement in-process debug mode ( #3486 )
2020-08-14 19:31:04 -07:00
Dmitry Gozman
bc23324878
chore: remove apiName plumbing and some unused methods from server side ( #3481 )
...
We append apiName where needed on the client instead.
2020-08-14 18:25:32 -07:00
Dmitry Gozman
244c2f37b6
feat(rpc): make sure filechooser is only intercepted when needed ( #3482 )
...
So that user can choose a file manually in headful mode.
2020-08-14 18:24:36 -07:00
Joel Einbinder
0c798f0572
fix(testrunner): properly run tests when the first arg is a file ( #3472 )
2020-08-14 16:49:49 -07:00
Dmitry Gozman
69e1e713ef
feat(click): provide preview of the element intercepting pointer events ( #3449 )
2020-08-14 14:48:36 -07:00
Dmitry Gozman
85c93e91a7
api: introduce ElementHandle.waitForSelector ( #3452 )
...
This is similar to Frame.waitForSelector, but relative to the handle.
2020-08-14 14:47:24 -07:00
Pavel Feldman
a03c761201
test: unconditionally plumb debug to parent process ( #3479 )
2020-08-14 13:46:43 -07:00
Pavel Feldman
d537088af8
test: deliver colorful debug messages, do not pipe stdio ( #3477 )
2020-08-14 13:42:03 -07:00