X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fserver%2Fplugins.ts;h=9885be4e84bc3b19f8bb97646e0af59db0422a5b;hb=a5896799f169d3313b63165fe6a79d4149fa6df1;hp=452d050125e153a3c87d14e0d0b829691c4dc10e;hpb=134cf2bce96a8c5aefd55154e884964975d8cf23;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/server/plugins.ts b/server/tests/api/server/plugins.ts index 452d05012..9885be4e8 100644 --- a/server/tests/api/server/plugins.ts +++ b/server/tests/api/server/plugins.ts @@ -27,7 +27,8 @@ import { updatePlugin, updatePluginPackageJSON, updatePluginSettings, - wait + wait, + waitUntilLog } from '../../../../shared/extra-utils' import { PluginType } from '../../../../shared/models/plugins/plugin.type' import { PeerTubePluginIndex } from '../../../../shared/models/plugins/peertube-plugin-index.model' @@ -142,7 +143,7 @@ describe('Test plugins', function () { it('Should have the correct global css', async function () { const res = await getPluginsCSS(server.url) - expect(res.text).to.contain('--mainBackgroundColor') + expect(res.text).to.contain('background-color: red') }) it('Should have the plugin loaded in the configuration', async function () { @@ -258,6 +259,12 @@ describe('Test plugins', function () { }) }) + it('Should have watched settings changes', async function () { + this.timeout(10000) + + await waitUntilLog(server, 'Settings changed!') + }) + it('Should get a plugin and a theme', async function () { { const res = await getPlugin({