]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix tests
authorChocobozzz <me@florianbigard.com>
Mon, 6 Aug 2018 08:05:06 +0000 (10:05 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 6 Aug 2018 09:19:16 +0000 (11:19 +0200)
client/src/app/videos/+video-edit/video-import.component.html
client/src/app/videos/+video-edit/video-upload.component.ts
server/tests/client.ts

index cfad5e2896516ddbc3920b8f182b21bdd860f979..6b431f6f6449368edfef77e54b9944eebe9e9298 100644 (file)
@@ -6,7 +6,7 @@
       <label i18n for="targetUrl">URL</label>
       <my-help
         helpType="custom" i18n-customHtml
-        customHtml="You can import any URL <a href='https://rg3.github.io/youtube-dl/supportedsites.html' target='_blank' rel='noopener noreferrer'>supported by youtube-dl</a> or URL that points to a raw MP4 file. Failure to secure these rights could cause legal trouble to yourself and your instance."
+        customHtml="You can import any URL <a href='https://rg3.github.io/youtube-dl/supportedsites.html' target='_blank' rel='noopener noreferrer'>supported by youtube-dl</a> or URL that points to a raw MP4 file. You should make sure you have diffusion rights over the content it points to, otherwise it could cause legal trouble to yourself and your instance."
       ></my-help>
 
       <input type="text" id="targetUrl" [(ngModel)]="targetUrl" />
index e6c391d2f2ab9253e795667db1bcd175ffd52fac..c5e9c159247db628c62ce0930fde215264ba8daf 100644 (file)
@@ -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?')
index 48f2ee4fcefc4b57a4acaf08985f94e49dcf16c0..b33a653b13e2079f0bc6ef3980085fcb8fd347a5 100644 (file)
@@ -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; }'