@umbraco/playwright-testhelpers 17.0.26 → 17.0.27
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.
- package/dist/lib/helpers/ContentUiHelper.d.ts +4 -0
- package/dist/lib/helpers/ContentUiHelper.js +12 -0
- package/dist/lib/helpers/ContentUiHelper.js.map +1 -1
- package/dist/lib/helpers/DocumentTypeApiHelper.d.ts +1 -1
- package/dist/lib/helpers/DocumentTypeApiHelper.js +3 -1
- package/dist/lib/helpers/DocumentTypeApiHelper.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -185,6 +185,7 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
185
185
|
private readonly linkPickerTargetToggle;
|
|
186
186
|
private readonly confirmToResetBtn;
|
|
187
187
|
private readonly saveModal;
|
|
188
|
+
private readonly expandSegmentBtn;
|
|
188
189
|
constructor(page: Page);
|
|
189
190
|
enterContentName(name: string): Promise<void>;
|
|
190
191
|
clickSaveAndPublishButton(): Promise<void>;
|
|
@@ -292,6 +293,7 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
292
293
|
doesDocumentTableColumnNameValuesMatch(expectedValues: string[]): Promise<void>;
|
|
293
294
|
searchByKeywordInCollection(keyword: string): Promise<void>;
|
|
294
295
|
clickSelectVariantButton(): Promise<void>;
|
|
296
|
+
clickExpendSegmentButton(contentName: string): Promise<void>;
|
|
295
297
|
clickVariantAddModeButtonForLanguageName(language: string): Promise<void>;
|
|
296
298
|
clickSaveAndCloseButton(): Promise<void>;
|
|
297
299
|
clickCreateContentWithName(name: string): Promise<void>;
|
|
@@ -492,4 +494,6 @@ export declare class ContentUiHelper extends UiBaseLocators {
|
|
|
492
494
|
clickLinkPickerAddButton(): Promise<void>;
|
|
493
495
|
clickLinkPickerTargetToggle(): Promise<void>;
|
|
494
496
|
clickConfirmToResetButton(): Promise<void>;
|
|
497
|
+
doesTextStringHaveExpectedValue(expectedValue: string): Promise<void>;
|
|
498
|
+
doesTextAreaHaveExpectedValue(expectedValue: string): Promise<void>;
|
|
495
499
|
}
|
|
@@ -189,6 +189,7 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
189
189
|
linkPickerTargetToggle;
|
|
190
190
|
confirmToResetBtn;
|
|
191
191
|
saveModal;
|
|
192
|
+
expandSegmentBtn;
|
|
192
193
|
constructor(page) {
|
|
193
194
|
super(page);
|
|
194
195
|
this.saveContentBtn = page.getByTestId('workspace-action:Umb.WorkspaceAction.Document.Save');
|
|
@@ -387,6 +388,8 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
387
388
|
this.linkPickerCloseBtn = this.linkPickerModal.getByRole('button', { name: 'Close', exact: true });
|
|
388
389
|
this.linkPickerTargetToggle = this.linkPickerModal.locator('[label="Opens the link in a new window or tab"]').locator('#toggle');
|
|
389
390
|
this.confirmToResetBtn = page.locator('#confirm').getByLabel('Reset', { exact: true });
|
|
391
|
+
// Segment
|
|
392
|
+
this.expandSegmentBtn = page.locator('.expand-area uui-button');
|
|
390
393
|
}
|
|
391
394
|
async enterContentName(name) {
|
|
392
395
|
await this.enterText(this.contentNameTxt, name, { verify: true });
|
|
@@ -800,6 +803,9 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
800
803
|
async clickSelectVariantButton() {
|
|
801
804
|
await this.click(this.selectAVariantBtn);
|
|
802
805
|
}
|
|
806
|
+
async clickExpendSegmentButton(contentName) {
|
|
807
|
+
await this.page.locator('.variant.culture-variant').filter({ hasText: contentName }).locator(this.expandSegmentBtn).click();
|
|
808
|
+
}
|
|
803
809
|
async clickVariantAddModeButtonForLanguageName(language) {
|
|
804
810
|
await this.click(this.variantAddModeBtn.getByText(language));
|
|
805
811
|
await this.page.waitForTimeout(ConstantHelper_1.ConstantHelper.wait.short);
|
|
@@ -1568,6 +1574,12 @@ class ContentUiHelper extends UiBaseLocators_1.UiBaseLocators {
|
|
|
1568
1574
|
async clickConfirmToResetButton() {
|
|
1569
1575
|
await this.click(this.confirmToResetBtn);
|
|
1570
1576
|
}
|
|
1577
|
+
async doesTextStringHaveExpectedValue(expectedValue) {
|
|
1578
|
+
await this.hasValue(this.textstringTxt, expectedValue);
|
|
1579
|
+
}
|
|
1580
|
+
async doesTextAreaHaveExpectedValue(expectedValue) {
|
|
1581
|
+
await this.hasValue(this.textAreaTxt, expectedValue);
|
|
1582
|
+
}
|
|
1571
1583
|
}
|
|
1572
1584
|
exports.ContentUiHelper = ContentUiHelper;
|
|
1573
1585
|
//# sourceMappingURL=ContentUiHelper.js.map
|