playwright/test
Andrey Lushnikov 1605cb453c
testrunner: make environment a simple class (#2769)
This patch:
- makes environment a simple class with optional methods `beforeEach`, `afterEach`, `beforeAll`, `afterAll`, `globalSetup` and `globalTeardown`
- removes capability to have multiple hooks of the same name inside suite
- removes default environment for test. (`dit` now adds a `TraceTestEnvironment` to the test)
- extracts all environments that we use in our tests in `//test/environments.js`

Downsides:
- we no longer know hook locations for the environments. This, however, should not be a big deal since stack traces (if any) will still point into it.
- this also regresses hook locations for suites for simplicity. We can get them back, but it shouldn't be pressing since we now have only one hook of each kind in every suite.
2020-06-30 16:51:03 -07:00
..
assets test: add more failing tests with react recycle (#2731) 2020-06-26 16:31:51 -07:00
chromium chore(rpc): support workers, file chooser, browser server (#2766) 2020-06-30 10:55:11 -07:00
electron feat(electron): add a test for clipboard access (#2606) 2020-06-17 14:16:17 -07:00
firefox feat(firefox): allow passing user prefs at launch time (#2417) 2020-05-31 09:28:57 -07:00
fixtures chore: add stack trace utilities and tests (#2371) 2020-05-27 14:26:44 -07:00
golden-chromium test: add iframe screenshot tests (#2495) 2020-06-09 12:59:49 -07:00
golden-firefox test: add iframe screenshot tests (#2495) 2020-06-09 12:59:49 -07:00
golden-webkit test: add iframe screenshot tests (#2495) 2020-06-09 12:59:49 -07:00
accessibility.spec.js test: remove module.export.describe wrapper (#1716) 2020-04-08 15:19:09 -07:00
apicoverage.spec.js chore: migrate wait tasks to Progress (#2422) 2020-06-01 08:54:18 -07:00
autowaiting.spec.js chore(rpc): attribute calles to page, ignore USES_HOOKS (#2764) 2020-06-29 18:58:09 -07:00
browser.spec.js test: remove module.export.describe wrapper (#1716) 2020-04-08 15:19:09 -07:00
browsercontext.spec.js fix(close): ensure close() can be called twice (#2744) 2020-06-29 16:26:32 -07:00
capabilities.spec.js feat(webkit): bump to 1290 (#2652) 2020-06-19 16:35:14 -07:00
click.spec.js chore(rpc): attribute calles to page, ignore USES_HOOKS (#2764) 2020-06-29 18:58:09 -07:00
cookies.spec.js test: unflake more cookies tests (#2333) 2020-05-21 15:37:52 -07:00
defaultbrowsercontext.spec.js chore(rpc): support workers, file chooser, browser server (#2766) 2020-06-30 10:55:11 -07:00
dialog.spec.js test: remove module.export.describe wrapper (#1716) 2020-04-08 15:19:09 -07:00
dispatchevent.spec.js fix(textContent): make page.textContent(selector) atomic (#2717) 2020-06-26 16:32:42 -07:00
download.spec.js feat(webkit): roll to r1228 (#2232) 2020-05-14 07:57:29 -07:00
downloadsPath.spec.js feat(downloads): accept downloads in persistent, allow specifying the downloadsPath (#2503) 2020-06-08 21:45:35 -07:00
elementhandle.spec.js fix(textContent): make page.textContent(selector) atomic (#2717) 2020-06-26 16:32:42 -07:00
emulation.spec.js feat(screenshot): accept timeout, migrate to Progress, wait for visible (#2679) 2020-06-24 10:16:54 -07:00
environments.js testrunner: make environment a simple class (#2769) 2020-06-30 16:51:03 -07:00
evaluation.spec.js chore(rpc): attribute calles to page, ignore USES_HOOKS (#2764) 2020-06-29 18:58:09 -07:00
fixtures.spec.js chore(logs): rework logs for simplicity (#2592) 2020-06-16 17:11:19 -07:00
focus.spec.js test: add focus traversal test (#2141) 2020-05-07 16:10:29 -07:00
frame.spec.js fix(evaluate): awaitPromise when Promise is overwritten (#2759) 2020-06-29 16:25:52 -07:00
geolocation.spec.js test(geolocation): test context isolation (#1770) 2020-04-13 21:43:06 -07:00
headful.spec.js test: fix cookie tests on WebKit (#2359) 2020-05-26 10:22:53 -07:00
ignorehttpserrors.spec.js fix(webkit): ignore WebSocket certificate errors on Mac (#1900) 2020-04-22 12:41:39 -07:00
input.spec.js test: await all promises in upload test (#2557) 2020-06-12 10:39:33 -07:00
interception.spec.js fix(cors): allow intercepting cors requests on chromium (#2643) 2020-06-19 17:14:32 -07:00
jshandle.spec.js feat(debug): generate preview for ElementHandle (#2549) 2020-06-12 11:10:18 -07:00
keyboard.spec.js feat(webkit): roll webkit to r1242 (#2361) 2020-05-26 14:48:21 -07:00
launcher.spec.js chore(rpc): attribute calles to page, ignore USES_HOOKS (#2764) 2020-06-29 18:58:09 -07:00
logger.spec.js chore(rpc): support workers, file chooser, browser server (#2766) 2020-06-30 10:55:11 -07:00
mouse.spec.js test: disable flaky firefox tests (#1912) 2020-04-22 00:07:02 -07:00
multiclient.spec.js chore(test): move more test options to state (#1761) 2020-04-12 22:19:26 -07:00
navigation.spec.js chore(rpc): support workers, file chooser, browser server (#2766) 2020-06-30 10:55:11 -07:00
network.spec.js test: add redirect+extraHTTPHeaders test (#2637) 2020-06-18 18:06:10 -07:00
page.spec.js fix(close): ensure close() can be called twice (#2744) 2020-06-29 16:26:32 -07:00
permissions.spec.js test: mark failing headful tests as such (#2226) 2020-05-13 18:33:07 -07:00
popup.spec.js test: add another test for browserContext.addInitScript (#2285) 2020-06-18 12:27:48 -07:00
proxy.spec.js feat(proxy): allow specifying proxy (#2485) 2020-06-05 13:50:15 -07:00
queryselector.spec.js chore(rpc): attribute calles to page, ignore USES_HOOKS (#2764) 2020-06-29 18:58:09 -07:00
recorder.spec.js chore(rpc): attribute calles to page, ignore USES_HOOKS (#2764) 2020-06-29 18:58:09 -07:00
run_static_server.js Initial commit 2019-11-19 10:58:15 -08:00
screenshot.spec.js chore(rpc): attribute calles to page, ignore USES_HOOKS (#2764) 2020-06-29 18:58:09 -07:00
test.config.js testrunner: make environment a simple class (#2769) 2020-06-30 16:51:03 -07:00
test.js testrunner: make environment a simple class (#2769) 2020-06-30 16:51:03 -07:00
tsconfig.json chore(tests): add types for tests (#915) 2020-02-10 13:20:13 -08:00
types.d.ts chore: rename root index-for-dev.js into index.js (#2337) 2020-05-23 00:03:57 -07:00
utils.js chore(rpc): support workers, file chooser, browser server (#2766) 2020-06-30 10:55:11 -07:00
waittask.spec.js chore: run most actions through page._runAbortableTask (#2721) 2020-06-25 16:57:21 -07:00
workers.spec.js feat(firefox): roll to r1082 (#1819) 2020-04-15 19:50:04 -07:00