Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions lib/helpers/UiBaseLocators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,12 @@ export class UiBaseLocators {
public readonly openedModal: Locator;
public readonly uiLoader: Locator;
public readonly createDocumentBlueprintModal: Locator;
public readonly inputDropzone: Locator;
public readonly imageCropperField: Locator;
public readonly inputUploadField: Locator;
public readonly entityItem: Locator;
public readonly sectionLinks: Locator;
public readonly backOfficeMain: Locator;

constructor(page: Page) {
this.page = page;
Expand Down Expand Up @@ -312,7 +316,11 @@ export class UiBaseLocators {
this.monacoEditor = page.locator('.monaco-editor');
this.openedModal = page.locator('uui-modal-container[backdrop]');
this.uiLoader = page.locator('uui-loader');
this.inputDropzone = page.locator('umb-input-dropzone');
this.imageCropperField = page.locator('umb-image-cropper-field');
this.inputUploadField = page.locator('umb-input-upload-field').locator('#wrapperInner');
this.entityItem = page.locator('umb-entity-item-ref');
this.backOfficeMain = page.locator('umb-backoffice-main');
}

async clickActionsMenuForNameInSectionSidebar(name: string) {
Expand Down Expand Up @@ -1443,4 +1451,20 @@ export class UiBaseLocators {
async isWorkspaceViewTabWithAliasVisible(alias: string, isVisible: boolean = true) {
await expect(this.page.getByTestId('workspace:view-link:' + alias)).toBeVisible({visible: isVisible});
}

async isInputDropzoneVisible(isVisible: boolean = true) {
await expect(this.inputDropzone).toBeVisible({visible: isVisible});
}

async isImageCropperFieldVisible(isVisible: boolean = true) {
await expect(this.imageCropperField).toBeVisible({visible: isVisible});
}

async isInputUploadFieldVisible(isVisible: boolean = true) {
await expect(this.inputUploadField).toBeVisible({visible: isVisible});
}

async isBackOfficeMainVisible(isVisible: boolean = true) {
await expect(this.backOfficeMain).toBeVisible({visible: isVisible});
}
}
2 changes: 2 additions & 0 deletions lib/helpers/UserGroupApiHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ export class UserGroupApiHelper {
.withDocumentRootAccess(true)
.addFallbackPermission()
.withDuplicatePermission(enabled)
.withCreatePermission(enabled)
.withReadPermission(true)
.done()
.build();
Expand All @@ -415,6 +416,7 @@ export class UserGroupApiHelper {
.withDocumentRootAccess(true)
.addFallbackPermission()
.withMoveToPermission(enabled)
.withCreatePermission(enabled)
.withReadPermission(true)
.done()
.build();
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@umbraco/playwright-testhelpers",
"version": "17.0.9",
"version": "17.0.10",
"description": "Test helpers for making playwright tests for Umbraco solutions",
"main": "dist/lib/index.js",
"files": [
Expand Down