@umbraco/playwright-testhelpers 18.0.2 → 18.0.3

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.
@@ -303,7 +303,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
303
303
  this.umbDocumentCollection = page.locator('umb-document-collection');
304
304
  this.documentTableColumnName = this.listView.locator('umb-document-table-column-name');
305
305
  //Block Grid - Block List
306
- this.addBlockElementBtn = page.locator('uui-button-group > uui-button').first().filter({ has: page.locator('a#button') });
306
+ this.addBlockElementBtn = page.locator('uui-button-group > uui-button').first().filter({ has: page.locator('#button') });
307
307
  this.formValidationMessage = page.locator('#splitViews umb-form-validation-message #messages');
308
308
  this.blockName = page.locator('#editor [slot="name"]');
309
309
  this.addBlockSettingsTabBtn = page.locator('umb-body-layout').getByRole('tab', { name: 'Settings' });
@@ -1489,11 +1489,11 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
1489
1489
  await this.click(createNewButtonLocator);
1490
1490
  }
1491
1491
  async isAddBlockListElementWithNameDisabled(blockName) {
1492
- const createNewButtonLocator = this.page.getByTestId(`property:${blockName.toLowerCase()}`).locator('uui-button[label="Create new"]');
1492
+ const createNewButtonLocator = this.page.getByTestId(`property:${blockName.toLowerCase()}`).locator('uui-button').filter({ hasText: 'Create new' });
1493
1493
  await (0, test_1.expect)(createNewButtonLocator).toHaveAttribute('disabled');
1494
1494
  }
1495
1495
  async isAddBlockListElementWithNameVisible(blockName) {
1496
- const createNewButtonLocator = this.page.getByTestId(`property:${blockName.toLowerCase()}`).locator('uui-button[label="Create new"]');
1496
+ const createNewButtonLocator = this.page.getByTestId(`property:${blockName.toLowerCase()}`).locator('uui-button').filter({ hasText: 'Create new' });
1497
1497
  await this.waitForVisible(createNewButtonLocator);
1498
1498
  await (0, test_1.expect)(createNewButtonLocator).not.toHaveAttribute('disabled');
1499
1499
  }