@umbraco/playwright-testhelpers 17.0.21 → 17.0.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/lib/helpers/ContentUiHelper.d.ts +1 -0
- package/dist/lib/helpers/ContentUiHelper.js +7 -0
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentApiHelper.d.ts +4 -4
- package/dist/lib/helpers/DocumentApiHelper.js +32 -8
- package/dist/lib/helpers/DocumentApiHelper.js.map +1 -1
- package/dist/lib/helpers/TemplateApiHelper.d.ts +2 -0
- package/dist/lib/helpers/TemplateApiHelper.js +36 -0
- package/dist/lib/helpers/TemplateApiHelper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -463,4 +463,5 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
463
463
|
isInlineBlockPropertyVisibleForBlockWithName(blockName: string, propertyName: string, isVisible?: boolean, index?: number): Promise<void>;
|
|
464
464
|
enterInlineBlockPropertyValue(propertyName: string, value: string, index?: number): Promise<void>;
|
|
465
465
|
doesInlineBlockPropertyHaveValue(propertyName: string, value: string, index?: number): Promise<void>;
|
|
466
|
+
removeNotFoundContentPickerWithId(contentPickerId?: string): Promise<void>;
|
|
466
467
|
}
|
|
@@ -1612,6 +1612,13 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1612
1612
|
const propertyLocator = this.blockListEntry.nth(index).locator(this.blockProperty).filter({ hasText: propertyName }).locator('input');
|
|
1613
1613
|
await (0, test_1.expect)(propertyLocator).toHaveValue(value);
|
|
1614
1614
|
}
|
|
1615
|
+
async removeNotFoundContentPickerWithId(contentPickerId) {
|
|
1616
|
+
const hasText = contentPickerId ? contentPickerId : 'Not found';
|
|
1617
|
+
const contentPickerLocator = this.entityItem.filter({ hasText: hasText });
|
|
1618
|
+
await contentPickerLocator.hover();
|
|
1619
|
+
await contentPickerLocator.getByLabel('Remove').click();
|
|
1620
|
+
await this.clickConfirmRemoveButton();
|
|
1621
|
+
}
|
|
1615
1622
|
}
|
|
1616
1623
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1617
1624
|
//# sourceMappingURL=ContentUiHelper.js.map
|