@umbraco/playwright-testhelpers 17.0.28 → 17.0.29
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.js +5 -4
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/PartialViewUiHelper.js +1 -2
- package/dist/lib/helpers/PartialViewUiHelper.js.map +1 -1
- package/dist/lib/helpers/ScriptUiHelper.js +1 -1
- package/dist/lib/helpers/ScriptUiHelper.js.map +1 -1
- package/dist/lib/helpers/StylesheetUiHelper.js +1 -1
- package/dist/lib/helpers/StylesheetUiHelper.js.map +1 -1
- package/dist/lib/helpers/UiBaseLocators.js +2 -0
- package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
- package/dist/lib/helpers/UserUiHelper.d.ts +1 -0
- package/dist/lib/helpers/UserUiHelper.js +3 -0
- package/dist/lib/helpers/UserUiHelper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -296,8 +296,8 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
296
296
|
this.containerSaveBtn = this.container.getByLabel('Save');
|
|
297
297
|
this.groupBasedProtectionBtn = page.locator('span').filter({ hasText: 'Group based protection' });
|
|
298
298
|
this.chooseMemberGroupBtn = page.locator('umb-input-member-group').getByLabel('Choose');
|
|
299
|
-
this.selectLoginPageDocument = page.locator('.select-item').filter({ hasText: 'Login Page' }).locator('umb-input-document');
|
|
300
|
-
this.selectErrorPageDocument = page.locator('.select-item').filter({ hasText: 'Error Page' }).locator('umb-input-document');
|
|
299
|
+
this.selectLoginPageDocument = page.locator('.select-item').filter({ hasText: 'Login Page' }).locator('umb-input-document').locator('#button');
|
|
300
|
+
this.selectErrorPageDocument = page.locator('.select-item').filter({ hasText: 'Error Page' }).locator('umb-input-document').locator('#button');
|
|
301
301
|
this.rollbackItem = page.locator('.rollback-item');
|
|
302
302
|
this.actionsMenu = page.locator('uui-scroll-container');
|
|
303
303
|
this.linkToDocumentBtn = this.linkPickerModal.getByTestId('action:document').locator('#button');
|
|
@@ -792,13 +792,13 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
792
792
|
async doesDocumentTableColumnNameValuesMatch(expectedValues) {
|
|
793
793
|
await this.waitForVisible(this.documentListView);
|
|
794
794
|
return expectedValues.forEach((text, index) => {
|
|
795
|
-
(0, test_1.expect)(this.documentTableColumnName.nth(index)
|
|
795
|
+
(0, test_1.expect)(this.documentTableColumnName.nth(index).getByLabel(text)).toBeVisible();
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
798
|
async searchByKeywordInCollection(keyword) {
|
|
799
799
|
await this.enterText(this.searchTxt, keyword);
|
|
800
800
|
await this.pressKey(this.searchTxt, 'Enter');
|
|
801
|
-
await this.page.waitForTimeout(ConstantHelper_1.ConstantHelper.wait.
|
|
801
|
+
await this.page.waitForTimeout(ConstantHelper_1.ConstantHelper.wait.medium);
|
|
802
802
|
}
|
|
803
803
|
async clickSelectVariantButton() {
|
|
804
804
|
await this.click(this.selectAVariantBtn);
|
|
@@ -817,6 +817,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
817
817
|
// List View
|
|
818
818
|
async clickCreateContentWithName(name) {
|
|
819
819
|
await this.click(this.page.getByLabel(`Create ${name}`));
|
|
820
|
+
await this.waitForTimeout(ConstantHelper_1.ConstantHelper.wait.short);
|
|
820
821
|
}
|
|
821
822
|
async enterNameInContainer(name) {
|
|
822
823
|
await this.enterText(this.enterNameInContainerTxt, name);
|