@wayward/types 2.14.0-beta.dev.20241004.1 → 2.14.0-beta.dev.20241005.1
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/definitions/game/utilities/memory/MemoryLeakDetector.d.ts +1 -0
- package/definitions/test/core/applicationInteractions.d.ts +1 -1
- package/definitions/test/core/marshals/ui/itemComponentMarshal.d.ts +7 -1
- package/definitions/test/suite/functionalTests/singleplayer/ui/ItemComponentLeak.d.ts +12 -0
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ declare class MemoryLeakDetector {
|
|
|
18
18
|
private activeTask;
|
|
19
19
|
get isReportingErrors(): boolean;
|
|
20
20
|
get isMonitoring(): boolean;
|
|
21
|
+
getCount(prefix: string): number;
|
|
21
22
|
waitForIdle(): Promise<void>;
|
|
22
23
|
register(object: object, objectName: string, expectedLifetime: ExpectedLifetime, parentObjectIdentifier?: string): void;
|
|
23
24
|
registerMultiple<T extends object>(prefix: string, objects: SaferArray<T>, objectNamer: (object: T) => string, expectedLifetime: ExpectedLifetime): void;
|
|
@@ -102,5 +102,5 @@ export default class ApplicationInteractions {
|
|
|
102
102
|
increaseStat(stat: Stat, value: number): Promise<void>;
|
|
103
103
|
randomInput(count: number): Promise<void>;
|
|
104
104
|
pressKey(key: string, modifier?: string, duration?: number): Promise<void>;
|
|
105
|
-
|
|
105
|
+
screenshot(suffix: string): Promise<void>;
|
|
106
106
|
}
|
|
@@ -8,12 +8,18 @@
|
|
|
8
8
|
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
|
+
import type { Application } from "@wayward/test/core/application";
|
|
11
12
|
import { ContainerBucketMarshal } from "@wayward/test/core/marshals/ui/ContainerBucketMarshal";
|
|
12
13
|
export declare class ItemComponentMarshal {
|
|
14
|
+
private readonly application;
|
|
13
15
|
private readonly element;
|
|
14
|
-
constructor(element: WebdriverIO.Element);
|
|
16
|
+
constructor(application: Application, element: WebdriverIO.Element);
|
|
15
17
|
isStack(): Promise<boolean>;
|
|
16
18
|
isWithinPlayerInventoryBucket(): Promise<boolean>;
|
|
17
19
|
getContainerBucket(): Promise<ContainerBucketMarshal>;
|
|
20
|
+
/**
|
|
21
|
+
* Clicks an action on the context menu for the given item type
|
|
22
|
+
*/
|
|
23
|
+
useItemAction(...actions: string[]): Promise<void>;
|
|
18
24
|
private getContainerDialogElement;
|
|
19
25
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2024 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
declare const _default: [string, import("../../../../testRunner").TestExecutor];
|
|
12
|
+
export default _default;
|
package/package.json
CHANGED