@umbraco/playwright-testhelpers 16.0.29 → 16.0.30
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 +2 -1
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/ProfilingUiHelper.js +2 -0
- package/dist/lib/helpers/ProfilingUiHelper.js.map +1 -1
- package/dist/lib/helpers/UiBaseLocators.js +38 -9
- package/dist/lib/helpers/UiBaseLocators.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -648,6 +648,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
648
648
|
await this.addMultiURLPickerBtn.click();
|
|
649
649
|
}
|
|
650
650
|
async selectLinkByName(linkName) {
|
|
651
|
+
await (0, test_1.expect)(this.sidebarModal.getByText(linkName, { exact: true })).toBeVisible();
|
|
651
652
|
await this.sidebarModal.getByText(linkName, { exact: true }).click();
|
|
652
653
|
}
|
|
653
654
|
async enterLink(value, toPress = false) {
|
|
@@ -1374,7 +1375,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1374
1375
|
await this.page.getByRole('menu').filter({ hasText: languageName }).click();
|
|
1375
1376
|
}
|
|
1376
1377
|
async clickBlockCardWithName(name, toForce = false) {
|
|
1377
|
-
const blockWithNameLocator = this.page.locator('
|
|
1378
|
+
const blockWithNameLocator = this.page.locator('uui-card-block-type', { hasText: name });
|
|
1378
1379
|
await (0, test_1.expect)(blockWithNameLocator).toBeVisible();
|
|
1379
1380
|
await blockWithNameLocator.click({ force: toForce });
|
|
1380
1381
|
}
|