@umbraco/playwright-testhelpers 16.0.37 → 16.0.39
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 +5 -2
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/UiBaseLocators.d.ts +3 -0
- package/dist/lib/helpers/UiBaseLocators.js +10 -0
- package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -420,4 +420,5 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
420
420
|
waitForRecycleBinToBeEmptied(): Promise<void>;
|
|
421
421
|
clickBlockElementInRTEWithName(elementTypeName: string): Promise<void>;
|
|
422
422
|
doesModalFormValidationMessageContainText(text: string): Promise<void>;
|
|
423
|
+
isContentNameReadOnly(): Promise<void>;
|
|
423
424
|
}
|
|
@@ -214,7 +214,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
214
214
|
this.tabItems = page.locator('uui-tab');
|
|
215
215
|
this.documentWorkspace = page.locator('umb-document-workspace-editor');
|
|
216
216
|
this.searchTxt = this.documentWorkspace.getByLabel('Search', { exact: true });
|
|
217
|
-
this.selectAVariantBtn = page.getByRole('button', { name: '
|
|
217
|
+
this.selectAVariantBtn = page.getByRole('button', { name: 'Open version selector' });
|
|
218
218
|
this.variantAddModeBtn = page.locator('.switch-button.add-mode').locator('.variant-name');
|
|
219
219
|
this.saveAndCloseBtn = page.getByLabel('Save and close');
|
|
220
220
|
this.documentTreeItem = page.locator('umb-document-tree-item');
|
|
@@ -844,7 +844,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
844
844
|
}
|
|
845
845
|
async changeDocumentSectionLanguage(newLanguageName) {
|
|
846
846
|
await this.documentLanguageSelect.click();
|
|
847
|
-
const documentSectionLanguageLocator = this.documentLanguageSelectPopover.
|
|
847
|
+
const documentSectionLanguageLocator = this.documentLanguageSelectPopover.getByText(newLanguageName);
|
|
848
848
|
await (0, test_1.expect)(documentSectionLanguageLocator).toBeVisible();
|
|
849
849
|
// Force click is needed
|
|
850
850
|
await documentSectionLanguageLocator.click({ force: true });
|
|
@@ -1421,6 +1421,9 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1421
1421
|
async doesModalFormValidationMessageContainText(text) {
|
|
1422
1422
|
await (0, test_1.expect)(this.modalFormValidationMessage).toContainText(text);
|
|
1423
1423
|
}
|
|
1424
|
+
async isContentNameReadOnly() {
|
|
1425
|
+
await (0, test_1.expect)(this.contentNameTxt).toHaveAttribute('readonly');
|
|
1426
|
+
}
|
|
1424
1427
|
}
|
|
1425
1428
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1426
1429
|
//# sourceMappingURL=ContentUiHelper.js.map
|