@allwright.dev/vitest 0.1.22 → 0.1.23
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/dist/expectations.d.ts +5 -5
- package/dist/index.d.ts +6 -6
- package/package.json +2 -2
package/dist/expectations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BoundingBox, CommandOptions, Locator,
|
|
1
|
+
import type { BoundingBox, CommandOptions, Locator, NativeApp, NativeAppLocator, Page, WaitForSelectorOptions } from "@allwright.dev/core";
|
|
2
2
|
export interface RetryExpectationOptions {
|
|
3
3
|
timeoutMs?: number;
|
|
4
4
|
intervalMs?: number;
|
|
@@ -48,11 +48,11 @@ export interface PageExpectMatchers extends MobilePageExpectMatchers {
|
|
|
48
48
|
toHaveBoundingBox(selector: string, expected: Partial<BoundingBox> | null, options?: TextExpectationOptions): Promise<void>;
|
|
49
49
|
}
|
|
50
50
|
type Defaults = () => RetryExpectationOptions;
|
|
51
|
-
type AnyLocator = Locator |
|
|
51
|
+
type AnyLocator = Locator | NativeAppLocator;
|
|
52
52
|
export declare function createLocatorExpect(locator: Locator, defaults: Defaults, negated?: boolean): LocatorExpectMatchers;
|
|
53
|
-
export declare function createLocatorExpect(locator:
|
|
53
|
+
export declare function createLocatorExpect(locator: NativeAppLocator, defaults: Defaults, negated?: boolean): MobileLocatorExpectMatchers;
|
|
54
54
|
export declare function createLocatorExpect(locator: AnyLocator, defaults: Defaults, negated?: boolean): MobileLocatorExpectMatchers;
|
|
55
55
|
export declare function createPageExpect(page: Page, defaults: Defaults, negated?: boolean): PageExpectMatchers;
|
|
56
|
-
export declare function createPageExpect(page:
|
|
57
|
-
export declare function createPageExpect(page: Page |
|
|
56
|
+
export declare function createPageExpect(page: NativeApp, defaults: Defaults, negated?: boolean): MobilePageExpectMatchers;
|
|
57
|
+
export declare function createPageExpect(page: Page | NativeApp, defaults: Defaults, negated?: boolean): MobilePageExpectMatchers;
|
|
58
58
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PageExpectMatchers, LocatorExpectMatchers, MobilePageExpectMatchers, MobileLocatorExpectMatchers } from "./expectations.js";
|
|
2
2
|
export type { RetryExpectationOptions, TextExpectationOptions, VisibleExpectationOptions, SelectedOptionExpectation, PageExpectMatchers, LocatorExpectMatchers, MobilePageExpectMatchers, MobileLocatorExpectMatchers } from "./expectations.js";
|
|
3
|
-
import { type MobileAndroidConnectOptions, type MobileAndroidDevice, type MobileAndroidLaunchOptions, type MobileAndroidApp, type MobileIosConnectOptions, type MobileIosDevice, type MobileIosLaunchOptions, type MobileIosApp, type DesktopMacApp, type DesktopMacConnectOptions, type DesktopMacDesktop, type DesktopMacLaunchOptions, type Browser, type BrowserKind, type LaunchOptions, type Locator, type
|
|
3
|
+
import { type MobileAndroidConnectOptions, type MobileAndroidDevice, type MobileAndroidLaunchOptions, type MobileAndroidApp, type NativeApp, type NativeAppLocator, type MobileIosConnectOptions, type MobileIosDevice, type MobileIosLaunchOptions, type MobileIosApp, type DesktopMacApp, type DesktopMacConnectOptions, type DesktopMacDesktop, type DesktopMacLaunchOptions, type Browser, type BrowserKind, type LaunchOptions, type Locator, type Page } from "@allwright.dev/core";
|
|
4
4
|
import { expect as vitestExpect, type Assertion } from "vitest";
|
|
5
5
|
export interface AllwrightVitestOptions {
|
|
6
6
|
launchOptions?: LaunchOptions;
|
|
@@ -41,11 +41,11 @@ export declare const test: import("vitest").TestAPI<{
|
|
|
41
41
|
browser: Browser;
|
|
42
42
|
page: Page;
|
|
43
43
|
android: MobileAndroidDevice;
|
|
44
|
-
androidApp:
|
|
44
|
+
androidApp: NativeApp;
|
|
45
45
|
ios: MobileIosDevice;
|
|
46
|
-
iosApp:
|
|
46
|
+
iosApp: NativeApp;
|
|
47
47
|
macos: DesktopMacDesktop;
|
|
48
|
-
macosApp:
|
|
48
|
+
macosApp: NativeApp;
|
|
49
49
|
allwright: AllwrightVitestOptions;
|
|
50
50
|
_browserResource: LazyResource<Browser>;
|
|
51
51
|
_androidResource: LazyResource<MobileAndroidDevice>;
|
|
@@ -56,8 +56,8 @@ type VitestExpect = typeof vitestExpect;
|
|
|
56
56
|
interface AllwrightExpect extends VitestExpect {
|
|
57
57
|
(actual: Page): PageExpectMatchers;
|
|
58
58
|
(actual: Locator): LocatorExpectMatchers;
|
|
59
|
-
(actual:
|
|
60
|
-
(actual:
|
|
59
|
+
(actual: NativeApp): MobilePageExpectMatchers;
|
|
60
|
+
(actual: NativeAppLocator): MobileLocatorExpectMatchers;
|
|
61
61
|
<T>(actual: T): Assertion<T>;
|
|
62
62
|
}
|
|
63
63
|
export declare const expect: AllwrightExpect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allwright.dev/vitest",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Vitest fixtures for the allwright TypeScript client.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"prepublishOnly": "bun run build"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@allwright.dev/core": "0.1.
|
|
50
|
+
"@allwright.dev/core": "0.1.23"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"typescript": "^5.9.2",
|