@umbraco/playwright-testhelpers 16.0.48 → 16.0.50

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.
@@ -568,7 +568,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
568
568
  return (0, test_1.expect)(this.sidebarModal.getByText(contentName)).toBeVisible({ visible: isVisible });
569
569
  }
570
570
  async isContentInTreeVisible(name, isVisible = true) {
571
- await (0, test_1.expect)(this.documentTreeItem.getByLabel(name, { exact: true })).toBeVisible({ visible: isVisible });
571
+ await (0, test_1.expect)(this.documentTreeItem.getByLabel(name, { exact: true }).first()).toBeVisible({ visible: isVisible });
572
572
  }
573
573
  async isChildContentInTreeVisible(parentName, childName, isVisible = true) {
574
574
  await (0, test_1.expect)(this.documentTreeItem.locator('[label="' + parentName + '"]').getByLabel(childName)).toBeVisible({ visible: isVisible });