@umbraco/playwright-testhelpers 16.0.5 → 16.0.7
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 +6 -4
- package/dist/lib/helpers/ContentUiHelper.js +13 -7
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/DataTypeApiHelper.d.ts +2 -1
- package/dist/lib/helpers/DataTypeApiHelper.js +10 -2
- package/dist/lib/helpers/DataTypeApiHelper.js.map +1 -1
- package/dist/lib/helpers/DataTypeUiHelper.js +1 -1
- package/dist/lib/helpers/DataTypeUiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentApiHelper.d.ts +1 -0
- package/dist/lib/helpers/DocumentApiHelper.js +55 -3
- package/dist/lib/helpers/DocumentApiHelper.js.map +1 -1
- package/dist/lib/helpers/MediaApiHelper.d.ts +1 -0
- package/dist/lib/helpers/MediaApiHelper.js +7 -2
- package/dist/lib/helpers/MediaApiHelper.js.map +1 -1
- package/dist/lib/helpers/NotificationConstantHelper.d.ts +1 -0
- package/dist/lib/helpers/NotificationConstantHelper.js +2 -1
- package/dist/lib/helpers/NotificationConstantHelper.js.map +1 -1
- package/dist/lib/helpers/UiBaseLocators.js +1 -1
- package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
- package/dist/lib/helpers/UserGroupApiHelper.js +1 -0
- package/dist/lib/helpers/UserGroupApiHelper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -56,7 +56,7 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
56
56
|
private readonly tabItems;
|
|
57
57
|
private readonly documentWorkspace;
|
|
58
58
|
private readonly searchTxt;
|
|
59
|
-
private readonly
|
|
59
|
+
private readonly selectAVariantBtn;
|
|
60
60
|
private readonly variantAddModeBtn;
|
|
61
61
|
private readonly saveAndCloseBtn;
|
|
62
62
|
private readonly enterNameInContainerTxt;
|
|
@@ -156,6 +156,7 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
156
156
|
private readonly inlineCreateBtn;
|
|
157
157
|
private readonly removeAt;
|
|
158
158
|
private readonly selectAllCheckbox;
|
|
159
|
+
private readonly confirmToPublishBtn;
|
|
159
160
|
constructor(page: Page);
|
|
160
161
|
enterContentName(name: string): Promise<void>;
|
|
161
162
|
clickSaveAndPublishButton(): Promise<void>;
|
|
@@ -247,8 +248,8 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
247
248
|
doesDocumentHaveName(name: string): Promise<void>;
|
|
248
249
|
doesDocumentTableColumnNameValuesMatch(expectedValues: string[]): Promise<void>;
|
|
249
250
|
searchByKeywordInCollection(keyword: string): Promise<void>;
|
|
250
|
-
|
|
251
|
-
|
|
251
|
+
clickSelectVariantButton(): Promise<void>;
|
|
252
|
+
clickVariantAddModeButtonForLanguageName(language: string): Promise<void>;
|
|
252
253
|
clickSaveAndCloseButton(): Promise<void>;
|
|
253
254
|
clickCreateContentWithName(name: string): Promise<void>;
|
|
254
255
|
enterNameInContainer(name: string): Promise<void>;
|
|
@@ -376,6 +377,7 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
376
377
|
doesPublishAtContainText(text: string): Promise<void>;
|
|
377
378
|
doesRemoveAtContainText(text: string): Promise<void>;
|
|
378
379
|
clickSelectAllCheckbox(): Promise<void>;
|
|
379
|
-
doesSchedulePublishModalButtonContainDisabledTag(hasDisabledTag?:
|
|
380
|
+
doesSchedulePublishModalButtonContainDisabledTag(hasDisabledTag?: boolean): Promise<void>;
|
|
380
381
|
clickInlineBlockCaretButtonForName(blockEditorName: string, index?: number): Promise<void>;
|
|
382
|
+
clickConfirmToPublishButton(): Promise<void>;
|
|
381
383
|
}
|
|
@@ -60,7 +60,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
60
60
|
tabItems;
|
|
61
61
|
documentWorkspace;
|
|
62
62
|
searchTxt;
|
|
63
|
-
|
|
63
|
+
selectAVariantBtn;
|
|
64
64
|
variantAddModeBtn;
|
|
65
65
|
saveAndCloseBtn;
|
|
66
66
|
enterNameInContainerTxt;
|
|
@@ -160,6 +160,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
160
160
|
inlineCreateBtn;
|
|
161
161
|
removeAt;
|
|
162
162
|
selectAllCheckbox;
|
|
163
|
+
confirmToPublishBtn;
|
|
163
164
|
constructor(page) {
|
|
164
165
|
super(page);
|
|
165
166
|
this.saveContentBtn = page.locator('[data-mark="workspace-action:Umb.WorkspaceAction.Document.Save"]');
|
|
@@ -203,8 +204,8 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
203
204
|
this.tabItems = page.locator('uui-tab');
|
|
204
205
|
this.documentWorkspace = page.locator('umb-document-workspace-editor');
|
|
205
206
|
this.searchTxt = this.documentWorkspace.getByLabel('Search', { exact: true });
|
|
206
|
-
this.
|
|
207
|
-
this.variantAddModeBtn = page.locator('.
|
|
207
|
+
this.selectAVariantBtn = page.getByRole('button', { name: 'Select a variant' });
|
|
208
|
+
this.variantAddModeBtn = page.locator('.switch-button.add-mode').locator('.variant-name');
|
|
208
209
|
this.saveAndCloseBtn = page.getByLabel('Save and close');
|
|
209
210
|
this.documentTreeItem = page.locator('umb-document-tree-item');
|
|
210
211
|
this.documentLanguageSelect = page.locator('umb-app-language-select');
|
|
@@ -323,6 +324,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
323
324
|
this.publishAt = this.generalItem.filter({ hasText: 'Publish at' }).locator('umb-localize-date');
|
|
324
325
|
this.removeAt = this.generalItem.filter({ hasText: 'Remove at' }).locator('umb-localize-date');
|
|
325
326
|
this.selectAllCheckbox = this.documentScheduleModal.locator('[label="Select all"]');
|
|
327
|
+
this.confirmToPublishBtn = page.locator('umb-document-publish-modal').getByLabel('Publish');
|
|
326
328
|
}
|
|
327
329
|
async enterContentName(name) {
|
|
328
330
|
await (0, test_1.expect)(this.contentNameTxt).toBeVisible();
|
|
@@ -703,11 +705,12 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
703
705
|
await this.searchTxt.press('Enter');
|
|
704
706
|
await this.page.waitForTimeout(500);
|
|
705
707
|
}
|
|
706
|
-
async
|
|
707
|
-
await this.
|
|
708
|
+
async clickSelectVariantButton() {
|
|
709
|
+
await (0, test_1.expect)(this.selectAVariantBtn).toBeVisible();
|
|
710
|
+
await this.selectAVariantBtn.click();
|
|
708
711
|
}
|
|
709
|
-
async
|
|
710
|
-
await this.variantAddModeBtn.
|
|
712
|
+
async clickVariantAddModeButtonForLanguageName(language) {
|
|
713
|
+
await this.variantAddModeBtn.getByText(language).click();
|
|
711
714
|
await this.page.waitForTimeout(500);
|
|
712
715
|
}
|
|
713
716
|
async clickSaveAndCloseButton() {
|
|
@@ -1276,6 +1279,9 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1276
1279
|
await (0, test_1.expect)(caretButtonLocator).toBeVisible();
|
|
1277
1280
|
await caretButtonLocator.click();
|
|
1278
1281
|
}
|
|
1282
|
+
async clickConfirmToPublishButton() {
|
|
1283
|
+
await this.confirmToPublishBtn.click();
|
|
1284
|
+
}
|
|
1279
1285
|
}
|
|
1280
1286
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1281
1287
|
//# sourceMappingURL=ContentUiHelper.js.map
|