From 60979b076de00a7c7f6dde26617cd39357d9fc6d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 6 Aug 2018 10:05:06 +0200 Subject: Fix tests --- client/src/app/videos/+video-edit/video-import.component.html | 2 +- client/src/app/videos/+video-edit/video-upload.component.ts | 2 +- server/tests/client.ts | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/app/videos/+video-edit/video-import.component.html b/client/src/app/videos/+video-edit/video-import.component.html index cfad5e289..6b431f6f6 100644 --- a/client/src/app/videos/+video-edit/video-import.component.html +++ b/client/src/app/videos/+video-edit/video-import.component.html @@ -6,7 +6,7 @@ diff --git a/client/src/app/videos/+video-edit/video-upload.component.ts b/client/src/app/videos/+video-edit/video-upload.component.ts index e6c391d2f..c5e9c1592 100644 --- a/client/src/app/videos/+video-edit/video-upload.component.ts +++ b/client/src/app/videos/+video-edit/video-upload.component.ts @@ -100,7 +100,7 @@ export class VideoUploadComponent extends FormReactive implements OnInit, OnDest if (this.videoUploaded === true) { // FIXME: cannot concatenate strings inside i18n service :/ - text = this.i18n('Your video was uploaded in your account and is private.') + + text = this.i18n('Your video was uploaded to your account and is private.') + this.i18n('But associated data (tags, description...) will be lost, are you sure you want to leave this page?') } else { text = this.i18n('Your video is not uploaded yet, are you sure you want to leave this page?') diff --git a/server/tests/client.ts b/server/tests/client.ts index 48f2ee4fc..b33a653b1 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts @@ -123,6 +123,12 @@ describe('Test a client controllers', function () { it('Should update the customized configuration and have the correct index html tags', async function () { await updateCustomSubConfig(server.url, server.accessToken, { instance: { + name: 'PeerTube updated', + shortDescription: 'my short description', + description: 'my super description', + terms: 'my super terms', + defaultClientRoute: '/videos/recently-added', + defaultNSFWPolicy: 'blur', customizations: { javascript: 'alert("coucou")', css: 'body { background-color: red; }' -- cgit v1.2.3