@vitest/browser 4.1.0-beta.5 → 4.1.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/context.d.ts +27 -5
- package/dist/client/.vite/manifest.json +1 -1
- package/dist/client/__vitest_browser__/{tester-C0ZOZX6s.js → tester-DVQLxxE-.js} +60 -21
- package/dist/client/tester/tester.html +1 -1
- package/dist/context.js +28 -0
- package/dist/expect-element.js +2 -2
- package/dist/{index-BvKPfXh9.js → index-CDbEr3te.js} +2 -2
- package/dist/index.d.ts +19 -1
- package/dist/index.js +5605 -2
- package/dist/locators.d.ts +2 -1
- package/dist/locators.js +1 -1
- package/package.json +14 -8
package/dist/locators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserEventClickOptions, UserEventWheelOptions, UserEventClearOptions, UserEventHoverOptions, UserEventFillOptions, UserEventUploadOptions, UserEventDragAndDropOptions, UserEventSelectOptions, LocatorScreenshotOptions, LocatorByRoleOptions, LocatorOptions, SelectorOptions } from 'vitest/browser';
|
|
1
|
+
import { UserEventClickOptions, UserEventWheelOptions, UserEventClearOptions, UserEventHoverOptions, UserEventFillOptions, UserEventUploadOptions, UserEventDragAndDropOptions, UserEventSelectOptions, LocatorScreenshotOptions, MarkOptions, LocatorByRoleOptions, LocatorOptions, SelectorOptions } from 'vitest/browser';
|
|
2
2
|
|
|
3
3
|
type ClauseCombinator = '' | '>' | '+' | '~' | '>=';
|
|
4
4
|
type CSSFunctionArgument = CSSComplexSelector | number | string;
|
|
@@ -330,6 +330,7 @@ declare abstract class Locator {
|
|
|
330
330
|
base64: string;
|
|
331
331
|
}>;
|
|
332
332
|
screenshot(options?: LocatorScreenshotOptions): Promise<string>;
|
|
333
|
+
mark(name: string, options?: MarkOptions): Promise<void>;
|
|
333
334
|
protected abstract locator(selector: string): Locator;
|
|
334
335
|
protected abstract elementLocator(element: Element): Locator;
|
|
335
336
|
getByRole(role: string, options?: LocatorByRoleOptions): Locator;
|
package/dist/locators.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{L as Locator,
|
|
1
|
+
export{L as Locator,o as convertElementToCssSelector,q as ensureAwaited,r as getByAltTextSelector,s as getByLabelSelector,t as getByPlaceholderSelector,u as getByRoleSelector,v as getByTestIdSelector,w as getByTextSelector,x as getByTitleSelector,y as getIframeScale,p as processTimeoutOptions,z as selectorEngine,A as triggerCommandWithTrace}from"./index-CDbEr3te.js";import"vitest/browser";import"vitest/internal/browser";
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.0-beta.
|
|
4
|
+
"version": "4.1.0-beta.6",
|
|
5
5
|
"description": "Browser running for Vitest",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
8
|
-
"homepage": "https://
|
|
8
|
+
"homepage": "https://vitest.dev/guide/browser/",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/vitest-dev/vitest.git",
|
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/vitest-dev/vitest/issues"
|
|
16
16
|
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"vitest",
|
|
19
|
+
"test",
|
|
20
|
+
"browser",
|
|
21
|
+
"component"
|
|
22
|
+
],
|
|
17
23
|
"sideEffects": false,
|
|
18
24
|
"exports": {
|
|
19
25
|
".": {
|
|
@@ -51,7 +57,7 @@
|
|
|
51
57
|
"providers"
|
|
52
58
|
],
|
|
53
59
|
"peerDependencies": {
|
|
54
|
-
"vitest": "4.1.0-beta.
|
|
60
|
+
"vitest": "4.1.0-beta.6"
|
|
55
61
|
},
|
|
56
62
|
"dependencies": {
|
|
57
63
|
"@blazediff/core": "1.9.1",
|
|
@@ -60,8 +66,8 @@
|
|
|
60
66
|
"sirv": "^3.0.2",
|
|
61
67
|
"tinyrainbow": "^3.0.3",
|
|
62
68
|
"ws": "^8.19.0",
|
|
63
|
-
"@vitest/
|
|
64
|
-
"@vitest/
|
|
69
|
+
"@vitest/utils": "4.1.0-beta.6",
|
|
70
|
+
"@vitest/mocker": "4.1.0-beta.6"
|
|
65
71
|
},
|
|
66
72
|
"devDependencies": {
|
|
67
73
|
"@opentelemetry/api": "^1.9.0",
|
|
@@ -69,12 +75,12 @@
|
|
|
69
75
|
"@types/pngjs": "^6.0.5",
|
|
70
76
|
"@types/ws": "^8.18.1",
|
|
71
77
|
"birpc": "^4.0.0",
|
|
72
|
-
"flatted": "3.3.
|
|
78
|
+
"flatted": "3.3.4",
|
|
73
79
|
"ivya": "^1.7.1",
|
|
74
80
|
"mime": "^4.1.0",
|
|
75
81
|
"pathe": "^2.0.3",
|
|
76
|
-
"
|
|
77
|
-
"vitest": "4.1.0-beta.
|
|
82
|
+
"vitest": "4.1.0-beta.6",
|
|
83
|
+
"@vitest/runner": "4.1.0-beta.6"
|
|
78
84
|
},
|
|
79
85
|
"scripts": {
|
|
80
86
|
"typecheck": "tsc -p ./src/client/tsconfig.json --noEmit",
|