Fix tests
This commit is contained in:
parent
b2977eecb8
commit
60979b076d
|
@ -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" />
|
||||
|
|
|
@ -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?')
|
||||
|
|
|
@ -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; }'
|
||||
|
|
Loading…
Reference in New Issue