@vuu-ui/vuu-playwright-helpers 3.5.7 → 3.5.8
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/package.json +2 -2
- package/types/Table.d.ts +45 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.5.
|
|
2
|
+
"version": "3.5.8",
|
|
3
3
|
"author": "heswell",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./src/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"type-defs": "node ../../scripts/build-type-defs.mjs"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@vuu-ui/vuu-protocol-types": "3.5.
|
|
12
|
+
"@vuu-ui/vuu-protocol-types": "3.5.8"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"@playwright/test": "^1.62.1"
|
package/types/Table.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type Locator } from "@playwright/test";
|
|
2
|
+
import type { VuuRange } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
+
type AriaRole = "cell" | "textbox" | "combobox";
|
|
4
|
+
export declare class TableOM {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(locator: Locator);
|
|
7
|
+
get contentContainer(): Locator;
|
|
8
|
+
get scrollbarContainer(): Locator;
|
|
9
|
+
/**
|
|
10
|
+
* row Locator by aria-index
|
|
11
|
+
*/
|
|
12
|
+
row(row: number): Locator;
|
|
13
|
+
/**
|
|
14
|
+
* Locate cell by cell contents
|
|
15
|
+
* @param text
|
|
16
|
+
*/
|
|
17
|
+
locateCell(text: string): Locator;
|
|
18
|
+
/**
|
|
19
|
+
* Locate cell by aria row index and aria col index
|
|
20
|
+
* @param text
|
|
21
|
+
*/
|
|
22
|
+
locateCell(row: number, column: number): Locator;
|
|
23
|
+
/**
|
|
24
|
+
* Locate cell by aria row index and column name
|
|
25
|
+
*/
|
|
26
|
+
locateCell(row: number, columnName: string): Promise<Locator>;
|
|
27
|
+
locateColumnHeader(column: number): Locator;
|
|
28
|
+
assertCellIsEditable(row: number, column: number, isEditable: boolean | undefined, value?: string): Promise<void>;
|
|
29
|
+
assertVisible(): Promise<void>;
|
|
30
|
+
private getCellText;
|
|
31
|
+
assertCellValue(cell: Locator, text: string, role?: AriaRole): Promise<void>;
|
|
32
|
+
assertCellValue(row: number, column: number, text: string, role?: AriaRole): Promise<void>;
|
|
33
|
+
assertCellContent(cell: Locator, text: string, role?: AriaRole): Promise<void>;
|
|
34
|
+
assertCellContent(row: number, column: number, text: string, role?: AriaRole): Promise<void>;
|
|
35
|
+
assertCellIsFocused(cell: Locator, role?: AriaRole): Promise<void>;
|
|
36
|
+
assertCellIsFocused(row: number, column: number, role?: AriaRole): Promise<void>;
|
|
37
|
+
assertCellIsEditing(cell: Locator, isEditing?: boolean): Promise<void>;
|
|
38
|
+
assertCellIsEditing(row: number, column: number, isEditing?: boolean): Promise<void>;
|
|
39
|
+
assertRenderedRows({ from, to }: VuuRange, renderBufferSize: number, totalRowCount: number, headerCount?: number): Promise<void>;
|
|
40
|
+
assertRenderedColumns({ rendered, visible, }: {
|
|
41
|
+
rendered: VuuRange;
|
|
42
|
+
visible: VuuRange;
|
|
43
|
+
}): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
export {};
|