Add server settings to further lock files on mobile (#30949)
* Add server settings to further lock files on mobile * fix format with prettier --------- Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: Saturnino Abril <5334504+saturninoabril@users.noreply.github.com>
Этот коммит содержится в:
@@ -566,6 +566,8 @@ const defaultServerConfig: AdminConfig = {
|
||||
MobileEnableBiometrics: false,
|
||||
MobilePreventScreenCapture: false,
|
||||
MobileJailbreakProtection: false,
|
||||
MobileEnableSecureFilePreview: false,
|
||||
MobileAllowPdfLinkNavigation: false,
|
||||
},
|
||||
CacheSettings: {
|
||||
CacheType: 'lru',
|
||||
|
||||
@@ -15,6 +15,10 @@ export default class MobileSecurity {
|
||||
readonly preventScreenCaptureToggleFalse: Locator;
|
||||
readonly jailbreakProtectionToggleTrue: Locator;
|
||||
readonly jailbreakProtectionToggleFalse: Locator;
|
||||
readonly enableSecureFilePreviewToggleTrue: Locator;
|
||||
readonly enableSecureFilePreviewToggleFalse: Locator;
|
||||
readonly allowPdfLinkNavigationToggleTrue: Locator;
|
||||
readonly allowPdfLinkNavigationToggleFalse: Locator;
|
||||
|
||||
readonly saveButton: Locator;
|
||||
|
||||
@@ -42,6 +46,27 @@ export default class MobileSecurity {
|
||||
'NativeAppSettings.MobileJailbreakProtectionfalse',
|
||||
);
|
||||
|
||||
this.jailbreakProtectionToggleTrue = this.container.getByTestId(
|
||||
'NativeAppSettings.MobileJailbreakProtectiontrue',
|
||||
);
|
||||
this.jailbreakProtectionToggleFalse = this.container.getByTestId(
|
||||
'NativeAppSettings.MobileJailbreakProtectionfalse',
|
||||
);
|
||||
|
||||
this.enableSecureFilePreviewToggleTrue = this.container.getByTestId(
|
||||
'NativeAppSettings.MobileEnableSecureFilePreviewtrue',
|
||||
);
|
||||
this.enableSecureFilePreviewToggleFalse = this.container.getByTestId(
|
||||
'NativeAppSettings.MobileEnableSecureFilePreviewfalse',
|
||||
);
|
||||
|
||||
this.allowPdfLinkNavigationToggleTrue = this.container.getByTestId(
|
||||
'NativeAppSettings.MobileAllowPdfLinkNavigationtrue',
|
||||
);
|
||||
this.allowPdfLinkNavigationToggleFalse = this.container.getByTestId(
|
||||
'NativeAppSettings.MobileAllowPdfLinkNavigationfalse',
|
||||
);
|
||||
|
||||
this.saveButton = this.container.getByRole('button', {name: 'Save'});
|
||||
}
|
||||
|
||||
@@ -73,6 +98,22 @@ export default class MobileSecurity {
|
||||
await this.jailbreakProtectionToggleFalse.click();
|
||||
}
|
||||
|
||||
async clickEnableSecureFilePreviewToggleTrue() {
|
||||
await this.enableSecureFilePreviewToggleTrue.click();
|
||||
}
|
||||
|
||||
async clickEnableSecureFilePreviewToggleFalse() {
|
||||
await this.enableSecureFilePreviewToggleFalse.click();
|
||||
}
|
||||
|
||||
async clickAllowPdfLinkNavigationToggleTrue() {
|
||||
await this.allowPdfLinkNavigationToggleTrue.click();
|
||||
}
|
||||
|
||||
async clickAllowPdfLinkNavigationToggleFalse() {
|
||||
await this.allowPdfLinkNavigationToggleFalse.click();
|
||||
}
|
||||
|
||||
async clickSaveButton() {
|
||||
await this.saveButton.click();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user