@umbraco/playwright-testhelpers 16.0.56 → 16.0.57
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/lib/helpers/ContentUiHelper.d.ts +4 -0
- package/dist/lib/helpers/ContentUiHelper.js +13 -0
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/DataTypeApiHelper.d.ts +1 -0
- package/dist/lib/helpers/DataTypeApiHelper.js +24 -0
- package/dist/lib/helpers/DataTypeApiHelper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -170,6 +170,7 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
170
170
|
private readonly refListBlock;
|
|
171
171
|
private readonly propertyActionMenu;
|
|
172
172
|
private readonly documentCreateOptionsModal;
|
|
173
|
+
private readonly listViewCustomRows;
|
|
173
174
|
constructor(page: Page);
|
|
174
175
|
enterContentName(name: string): Promise<void>;
|
|
175
176
|
clickSaveAndPublishButton(): Promise<void>;
|
|
@@ -436,4 +437,7 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
436
437
|
isContentWithNameVisibleInList(contentName: string, isVisible?: boolean): Promise<void>;
|
|
437
438
|
selectDocumentBlueprintWithName(blueprintName: string): Promise<void>;
|
|
438
439
|
doesDocumentModalHaveText(text: string): Promise<void>;
|
|
440
|
+
doesListViewItemsHaveCount(pageSize: number): Promise<void>;
|
|
441
|
+
isListViewItemWithNameVisible(itemName: string, index?: number): Promise<void>;
|
|
442
|
+
clickPaginationNextButton(): Promise<void>;
|
|
439
443
|
}
|
|
@@ -174,6 +174,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
174
174
|
refListBlock;
|
|
175
175
|
propertyActionMenu;
|
|
176
176
|
documentCreateOptionsModal;
|
|
177
|
+
listViewCustomRows;
|
|
177
178
|
constructor(page) {
|
|
178
179
|
super(page);
|
|
179
180
|
this.saveContentBtn = page.getByTestId('workspace-action:Umb.WorkspaceAction.Document.Save');
|
|
@@ -354,6 +355,8 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
354
355
|
this.memberPickerSearchTxt = this.page.locator('umb-member-picker-modal #input');
|
|
355
356
|
// Property Actions
|
|
356
357
|
this.propertyActionMenu = page.locator('#property-action-popover umb-popover-layout');
|
|
358
|
+
// List view custom
|
|
359
|
+
this.listViewCustomRows = page.locator('table tbody tr');
|
|
357
360
|
}
|
|
358
361
|
async enterContentName(name) {
|
|
359
362
|
await (0, test_1.expect)(this.contentNameTxt).toBeVisible();
|
|
@@ -1489,6 +1492,16 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1489
1492
|
async doesDocumentModalHaveText(text) {
|
|
1490
1493
|
await (0, test_1.expect)(this.documentCreateOptionsModal).toContainText(text);
|
|
1491
1494
|
}
|
|
1495
|
+
async doesListViewItemsHaveCount(pageSize) {
|
|
1496
|
+
await (0, test_1.expect)(this.listViewCustomRows).toHaveCount(pageSize);
|
|
1497
|
+
}
|
|
1498
|
+
async isListViewItemWithNameVisible(itemName, index = 0) {
|
|
1499
|
+
await (0, test_1.expect)(this.listViewCustomRows.nth(index)).toContainText(itemName);
|
|
1500
|
+
}
|
|
1501
|
+
async clickPaginationNextButton() {
|
|
1502
|
+
await (0, test_1.expect)(this.nextBtn).toBeVisible();
|
|
1503
|
+
await this.nextBtn.click();
|
|
1504
|
+
}
|
|
1492
1505
|
}
|
|
1493
1506
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1494
1507
|
//# sourceMappingURL=ContentUiHelper.js.map
|