@umbraco/playwright-testhelpers 17.0.0-beta.5 → 17.0.0-beta.6

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.
@@ -6,7 +6,6 @@ export declare class ContentUiHelper extends UiBaseLocators {
6
6
  private readonly publishBtn;
7
7
  private readonly unpublishBtn;
8
8
  private readonly actionMenuForContentBtn;
9
- private readonly openedModal;
10
9
  private readonly textstringTxt;
11
10
  private readonly infoTab;
12
11
  private readonly linkContent;
@@ -50,8 +49,6 @@ export declare class ContentUiHelper extends UiBaseLocators {
50
49
  private readonly documentTypeWorkspace;
51
50
  private readonly addMultipleTextStringBtn;
52
51
  private readonly multipleTextStringValueTxt;
53
- private readonly markdownTxt;
54
- private readonly codeEditorTxt;
55
52
  private readonly sliderInput;
56
53
  private readonly tabItems;
57
54
  private readonly documentWorkspace;
@@ -10,7 +10,6 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
10
10
  publishBtn;
11
11
  unpublishBtn;
12
12
  actionMenuForContentBtn;
13
- openedModal;
14
13
  textstringTxt;
15
14
  infoTab;
16
15
  linkContent;
@@ -54,8 +53,6 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
54
53
  documentTypeWorkspace;
55
54
  addMultipleTextStringBtn;
56
55
  multipleTextStringValueTxt;
57
- markdownTxt;
58
- codeEditorTxt;
59
56
  sliderInput;
60
57
  tabItems;
61
58
  documentWorkspace;
@@ -185,7 +182,6 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
185
182
  this.publishBtn = page.getByLabel(/^Publish(…)?$/);
186
183
  this.unpublishBtn = page.getByLabel(/^Unpublish(…)?$/);
187
184
  this.actionMenuForContentBtn = page.locator('#header').getByTestId('open-dropdown');
188
- this.openedModal = page.locator('uui-modal-container[backdrop]');
189
185
  this.textstringTxt = page.locator('umb-property-editor-ui-text-box #input');
190
186
  this.reloadChildrenThreeDotsBtn = page.getByRole('button', { name: 'Reload children…' });
191
187
  this.contentTree = page.locator('umb-tree[alias="Umb.Tree.Document"]');
@@ -212,8 +208,6 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
212
208
  this.documentTypeWorkspace = this.sidebarModal.locator('umb-document-type-workspace-editor');
213
209
  this.addMultipleTextStringBtn = page.locator('umb-input-multiple-text-string').getByLabel('Add');
214
210
  this.multipleTextStringValueTxt = page.locator('umb-input-multiple-text-string').getByLabel('Value');
215
- this.markdownTxt = page.locator('umb-input-markdown textarea');
216
- this.codeEditorTxt = page.locator('umb-code-editor textarea');
217
211
  this.sliderInput = page.locator('umb-property-editor-ui-slider #input');
218
212
  this.tabItems = page.locator('uui-tab');
219
213
  this.documentWorkspace = page.locator('umb-document-workspace-editor');
@@ -733,13 +727,11 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
733
727
  }
734
728
  // Code Editor
735
729
  async enterCodeEditorValue(value) {
736
- await this.codeEditorTxt.clear();
737
- await this.codeEditorTxt.fill(value);
730
+ await this.enterMonacoEditorValue(value);
738
731
  }
739
732
  // Markdown Editor
740
733
  async enterMarkdownEditorValue(value) {
741
- await this.markdownTxt.clear();
742
- await this.markdownTxt.fill(value);
734
+ await this.enterMonacoEditorValue(value);
743
735
  }
744
736
  // Slider
745
737
  async changeSliderValue(value) {
@@ -749,7 +741,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
749
741
  return (0, test_1.expect)(this.sidebarModal.getByText(contentName)).toBeVisible({ visible: isVisible });
750
742
  }
751
743
  async doesModalHaveText(text) {
752
- return (0, test_1.expect)(this.sidebarModal).toContainText(text);
744
+ return (0, test_1.expect)(this.openedModal).toContainText(text);
753
745
  }
754
746
  // Collection tab
755
747
  async isTabNameVisible(tabName) {