@uxf/e2e-playwright 11.119.0 → 11.119.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.
@@ -9,7 +9,7 @@ export declare class DataGridTableModel extends BaseModel {
9
9
  private readonly headerLocator;
10
10
  constructor(page: Page, finder: DataGridTableFinder);
11
11
  private getColumnIndex;
12
- getRowCount(): Promise<number>;
12
+ shouldHaveRowCount(count: number): Promise<void>;
13
13
  /** When using a numeric column index, checkbox and action cells are counted */
14
14
  shouldHaveCellValue(data: {
15
15
  content: string;
@@ -5,7 +5,7 @@ const components_1 = require("../components");
5
5
  (0, test_1.test)("DataGridTable", async ({ page }) => {
6
6
  const ui = (0, components_1.createUi)(page);
7
7
  await page.goto("/examples/data-grid/table-v2/Default");
8
- (0, test_1.expect)(await ui.dataGridTable({ nth: 0 }).getRowCount()).toBe(12);
8
+ await ui.dataGridTable({ nth: 0 }).shouldHaveRowCount(12);
9
9
  await ui.dataGridTable({}).shouldHaveCellValue({ column: "Text", content: "Red" });
10
10
  await ui.dataGridTable({}).shouldHaveCellValue({ row: 2, column: 1, content: "Green" });
11
11
  });
@@ -20,8 +20,8 @@ class DataGridTableModel extends base_model_1.BaseModel {
20
20
  }
21
21
  return index;
22
22
  }
23
- async getRowCount() {
24
- return this.bodyLocator.locator(".uxf-dg-table__row").count();
23
+ async shouldHaveRowCount(count) {
24
+ await (0, test_1.expect)(this.bodyLocator.locator(".uxf-dg-table__row")).toHaveCount(count);
25
25
  }
26
26
  /** When using a numeric column index, checkbox and action cells are counted */
27
27
  async shouldHaveCellValue(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/e2e-playwright",
3
- "version": "11.119.0",
3
+ "version": "11.119.1",
4
4
  "description": "UXF Playwright helpers",
5
5
  "publishConfig": {
6
6
  "access": "public"