@umbraco/playwright-testhelpers 18.0.3 → 18.0.5

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.
@@ -290,7 +290,8 @@ export declare class ContentUiHelper extends UiBaseLocators {
290
290
  doesDocumentHaveName(name: string): Promise<void>;
291
291
  doesDocumentTableColumnNameValuesMatch(expectedValues: string[]): Promise<void>;
292
292
  clickSelectVariantButton(): Promise<void>;
293
- clickExpendSegmentButton(contentName: string): Promise<void>;
293
+ clickExpandSegmentButton(contentName: string): Promise<void>;
294
+ clickSegmentVariantButton(segmentName: string): Promise<void>;
294
295
  clickVariantAddModeButtonForLanguageName(language: string): Promise<void>;
295
296
  clickSaveAndCloseButton(): Promise<void>;
296
297
  clickCreateContentWithName(name: string): Promise<void>;
@@ -271,7 +271,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
271
271
  this.trashBtn = page.getByLabel(/^Trash(…)?$/);
272
272
  this.exactTrashBtn = page.getByRole('button', { name: 'Trash', exact: true });
273
273
  this.documentListView = page.locator('umb-document-table-collection-view');
274
- this.documentGridView = page.locator('umb-document-grid-collection-view');
274
+ this.documentGridView = page.locator('umb-card-collection-view');
275
275
  this.documentWorkspaceEditor = page.locator('umb-workspace-editor');
276
276
  this.documentBlueprintModal = page.locator('umb-create-blueprint-modal');
277
277
  this.documentBlueprintModalEnterNameTxt = this.documentBlueprintModal.locator('input');
@@ -794,9 +794,13 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
794
794
  async clickSelectVariantButton() {
795
795
  await this.click(this.selectAVariantBtn);
796
796
  }
797
- async clickExpendSegmentButton(contentName) {
797
+ async clickExpandSegmentButton(contentName) {
798
798
  await this.page.locator('.variant.culture-variant').filter({ hasText: contentName }).locator(this.expandSegmentBtn).click();
799
799
  }
800
+ async clickSegmentVariantButton(segmentName) {
801
+ await this.click(this.page.getByRole('button', { name: segmentName }));
802
+ await this.page.waitForTimeout(ConstantHelper_1.ConstantHelper.wait.short);
803
+ }
800
804
  async clickVariantAddModeButtonForLanguageName(language) {
801
805
  await this.click(this.variantAddModeBtn.getByText(language));
802
806
  await this.page.waitForTimeout(ConstantHelper_1.ConstantHelper.wait.short);