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'
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 () {
})
})
+ 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({