chore(tests): clean up browser tests by splitting out federation UI tests

This commit is contained in:
Gabe Kangas
2024-11-15 18:39:15 -08:00
parent 8fa2546bef
commit 56d52c283c
11 changed files with 86 additions and 46 deletions

View File

@@ -20,16 +20,10 @@ import fetchData from './fetchData.js';
// Alternatively you can use CommonJS syntax:
// require('./commands')
// Put Owncast in a state where it's ready to be tested.
// Set server URL
fetchData('http://localhost:8080/api/admin/config/serverurl', {
method: 'POST',
data: { value: 'https://testing.biz' },
});
// Enable Fediverse features.
fetchData('http://localhost:8080/api/admin/config/federation/enable', {
method: 'POST',
data: { value: true },
before(() => {
// Set server URL
fetchData('http://localhost:8080/api/admin/config/serverurl', {
method: 'POST',
data: { value: 'https://testing.biz' },
});
});