chore(tests): clean up browser tests by splitting out federation UI tests
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
// describe('Lighthouse Metrics', () => {
|
||||
// beforeEach(() => {
|
||||
// cy.visit('http://localhost:8080');
|
||||
// });
|
||||
|
||||
// it('Capture Metrics', () => {
|
||||
// cy.lighthouse({
|
||||
// accessibility: 97,
|
||||
// 'best-practices': 90,
|
||||
// seo: 90,
|
||||
// performance: 0, // Once the performance issues are fixed revert this 90,
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
|
||||
import fetchData from '../../support/fetchData.js';
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
|
||||
console.log('------------- support/e2e.js');
|
||||
// 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 },
|
||||
});
|
||||
Reference in New Issue
Block a user