@umbraco/playwright-testhelpers 17.0.19 → 17.0.20

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.
@@ -241,7 +241,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
241
241
  // Culture and Hostname
242
242
  this.cultureAndHostnamesBtn = page.getByLabel(/^Culture and Hostnames(…)?$/);
243
243
  this.hostNameItem = page.locator('.hostname-item');
244
- this.cultureLanguageDropdownBox = this.hostNameItem.locator('[label="Culture"]').getByLabel('combobox-input');
244
+ this.cultureLanguageDropdownBox = this.page.locator('[label="Culture"]').getByLabel('combobox-input');
245
245
  this.hostnameTxt = page.getByLabel('Hostname', { exact: true });
246
246
  this.hostnameLanguageDropdownBox = this.hostNameItem.locator('[label="Culture"]').getByLabel('combobox-input');
247
247
  this.deleteHostnameBtn = this.hostNameItem.locator('[name="icon-trash"] svg');
@@ -541,8 +541,8 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
541
541
  async selectCultureLanguageOption(option) {
542
542
  await (0, test_1.expect)(this.cultureLanguageDropdownBox).toBeVisible();
543
543
  await this.cultureLanguageDropdownBox.click();
544
- await (0, test_1.expect)(this.hostNameItem.getByText(option, { exact: true })).toBeVisible();
545
- await this.hostNameItem.getByText(option, { exact: true }).click();
544
+ await (0, test_1.expect)(this.page.getByText(option, { exact: true })).toBeVisible();
545
+ await this.page.getByText(option, { exact: true }).click();
546
546
  }
547
547
  async selectHostnameLanguageOption(option, index = 0) {
548
548
  await this.hostnameLanguageDropdownBox.nth(index).click();