99 Commits

Author SHA1 Message Date
Vladimir
da6d2ea72c
fix(browser): don't polyfill process.env (#6718) 2024-10-15 14:54:54 +02:00
Vladimir
079185387b
fix(browser): optimize expect-type (#6713) 2024-10-15 11:55:15 +02:00
renovate[bot]
d260cef634
chore(deps): update all non-major dependencies (#6360)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-10-14 13:43:10 +02:00
Hiroshi Ogawa
9c518c1424
fix(browser): fix default browser port (#6700) 2024-10-14 13:24:34 +02:00
Vladimir
8bef5d2b99
fix(browser): not.toBeInTheDocument works with locators API (#6634) 2024-10-07 10:25:36 +02:00
Hiroshi Ogawa
46be62c207
test: refactor browser test utils (#6624) 2024-10-03 12:49:44 +02:00
Ari Perkkiö
5f757900b5
refactor: replace strip-ansi with stripVTControlCharacters from node:util (#6608) 2024-10-02 09:50:19 +02:00
Hiroshi Ogawa
adcdaee8a2
fix(browser): serve ui assets as static (#6564) 2024-09-25 10:35:55 +02:00
Hiroshi Ogawa
f131f93ba3
fix(browser): fix browser mock factory event race condition (#6530) 2024-09-25 10:33:58 +02:00
Hiroshi Ogawa
ea2d429b20
fix(browser): fix dynamic import inside worker (#6569) 2024-09-25 10:24:02 +02:00
Vladimir
94a186ec91
fix(ui): render project name consistently (#6329) 2024-09-12 14:28:16 +02:00
Vladimir
0b4da69e11
fix: userEvent works consistently between providers (#6480) 2024-09-12 13:49:15 +02:00
Ari Perkkiö
7ab0f4a8ff
feat(browser): support --inspect-brk (#6434) 2024-09-08 19:37:16 +02:00
Vladimir
cf148645c9
feat(browser): support userEvent.upload in playwright provider (#6442) 2024-09-02 18:33:22 +02:00
Vladimir
c853126e90
fix(browser): correctly run in-source tests in the browser (#6440) 2024-09-02 15:46:06 +02:00
Vladimir
95f0203f27
feat(mocker): introduce @vitest/mocker package, allow { spy: true } instead of a factory (#6289) 2024-08-21 17:17:27 +02:00
Vladimir
153ff01b10
fix(typecheck): run both runtime and typecheck tests if typecheck.include overlaps with include (#6256) 2024-08-13 12:42:39 +02:00
Vladimir
93abfa065f
test: make react example more stable (#6324) 2024-08-12 13:32:43 +02:00
Vladimir
d7951125c2
docs: add vitest-browser packages to Browser Mode examples (#6314) 2024-08-09 16:26:46 +02:00
Ben McCann
00dfc1a450
chore: remove unused execa devDependencies (#6294)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
2024-08-09 14:57:32 +02:00
Vladimir
30dc579309
fix(browser): keep querying elements even if locator is created with elementLocator, add pubic @vitest/browser/utils (#6296) 2024-08-07 13:40:18 +02:00
Vladimir
3347f83e5a
feat(browser): introduce built-in locators (#6084) 2024-08-07 08:18:27 +02:00
Vladimir
74ca11a4b8
feat(browser): make iframe scalable, improve documentation (#6257) 2024-08-05 12:51:23 +02:00
Vladimir
af2b813c75
feat(browser): move page.config to server.config, add more docs (#6252) 2024-07-31 20:06:12 +02:00
Vladimir
1da6cebe46
fix(browser): print correct stack trace for unhandled errors (#6134) 2024-07-31 18:05:09 +02:00
Zack Voase
e7acd0cf89
fix(browser): Improve unique CSS selector generation (#6243)
Co-authored-by: Zack Voase <zvoase@netflix.com>
2024-07-30 09:08:41 +02:00
Mike Neverov
d4c005bce5
fix(browser): passing options to hover/unhover (#6175) 2024-07-26 09:07:46 +02:00
Vladimir Sheremet
bea27d0733
chore: cleanup 2024-07-25 12:58:04 +02:00
Vladimir
804ff2fd41
fix(browser): correctly import optimized module in vi.importActual (#6219) 2024-07-25 12:57:01 +02:00
Vladimir Sheremet
9069bdcd69
Revert "fix(browser): don't inject empty process global (#6213)"
This reverts commit 1affb99551a40b16df47ec78915c05cdc6d74e94.
2024-07-24 17:42:34 +02:00
Vladimir
1affb99551
fix(browser): don't inject empty process global (#6213) 2024-07-24 11:00:55 +02:00
Vladimir
883f348274
fix(browser): userEvent.setup initiates a separate state for userEvent instance (#6088) 2024-07-23 15:56:21 +02:00
Vladimir
f44cc917cc
fix(browser): allow immidiate reinvalidation of mocked dependencies (#6108) 2024-07-12 17:34:55 +02:00
Vladimir
58fac77b37
fix(browser): don't release keyboard automatically (#6083) 2024-07-10 17:43:46 +02:00
Vladimir
2e3c872ae4
fix(browser): support shadow root and svg elements (#6036) 2024-07-04 16:00:05 +02:00
Vladimir
057b4f34b2
fix(browser): correctly mock optimized cjs dependencies (#6035) 2024-07-04 11:35:12 +02:00
Joaquín Sánchez
ff978e58de
feat(browser): playwright provider doesn't allow resizing the browser viewport (#5984)
Co-authored-by: Vladimir Sheremet <sleuths.slews0s@icloud.com>
2024-07-01 16:10:16 +02:00
Vladimir
be32317638
feat: add an option to return base64 from page.screenshot (#5993) 2024-06-30 19:12:32 +02:00
Vladimir
62aa720812
fix(browser): print correct stack trace in source files (#6003) 2024-06-30 18:26:14 +02:00
Joaquín Sánchez
200a4349a2
feat(browser): add tripleClick to interactive api (#5987) 2024-06-28 10:38:07 +02:00
Vladimir
152891b3d5
fix(browser): print screenshot path alongside the test error message (#5992) 2024-06-28 10:23:36 +02:00
Vladimir
bec434cb68
feat(browser): expose CDP in the browser (#5938) 2024-06-20 17:48:00 +02:00
Joaquín Sánchez
45dfc95aef
feat(ui): replace navigation tree with test explorer (#5907) 2024-06-20 14:24:20 +02:00
Vladimir
3a96a3d0e8
feat(browser): introduce expect.dom method and bundle jest-dom matchers with @vitest/browser (#5910) 2024-06-20 13:08:02 +02:00
Vladimir
2380cb95eb
fix(browser): correctly update inline snapshot if changed (#5925) 2024-06-19 21:37:25 +02:00
Vladimir
489785d5d4
refactor(browser): prefer pretty-print for objects (#5928) 2024-06-19 21:37:05 +02:00
Vladimir
67d6adde93
refactor(browser): move the browser server into its own entity (#5924) 2024-06-19 18:12:52 +02:00
Vladimir
4dbea4aed1
feat(browser): implement several userEvent methods, add fill and dragAndDrop events (#5882) 2024-06-18 13:29:49 +02:00
Vladimir
471cf97b0c
chore: always require curly braces (#5885)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>
2024-06-16 18:10:10 +02:00
Vladimir
81c42fc8a8
feat(browser): run tests in parallel in headless mode, add page.screenshot method (#5853) 2024-06-12 14:06:05 +02:00