2022-11-04 20:04:13 -07:00
|
|
|
import { setup } from '../../support/setup.js';
|
|
|
|
setup();
|
|
|
|
|
|
|
|
describe(`Basic tests`, () => {
|
|
|
|
it('Can visit the page', () => {
|
|
|
|
cy.visit('http://localhost:8080/');
|
|
|
|
});
|
|
|
|
|
2022-12-21 17:36:11 -08:00
|
|
|
// Offline banner
|
|
|
|
it('Has correct offline banner values', () => {
|
|
|
|
cy.contains(
|
2022-12-29 16:26:04 -08:00
|
|
|
'This stream is offline. You can be notified the next time New Owncast Server goes live or follow streamer@testing.biz on the Fediverse.'
|
|
|
|
).should('exist');
|
2022-12-21 17:36:11 -08:00
|
|
|
});
|
|
|
|
|
2022-11-04 20:04:13 -07:00
|
|
|
// Verify the tags show up
|
|
|
|
it('Has correct tags visible', () => {
|
2023-04-26 23:31:23 +01:00
|
|
|
cy.contains('#owncast').should('exist');
|
|
|
|
cy.contains('#streaming').should('exist');
|
2022-11-04 20:04:13 -07:00
|
|
|
});
|
|
|
|
|
|
|
|
// it('Can open notify modal', () => {
|
|
|
|
// cy.contains('Be notified').click();
|
|
|
|
// cy.wait(1500);
|
|
|
|
// cy.get('.ant-modal-close').click();
|
|
|
|
// });
|
|
|
|
|
|
|
|
// it('Can open follow modal', () => {
|
|
|
|
// cy.contains('Follow').click();
|
|
|
|
// cy.wait(1500);
|
|
|
|
// cy.get('.ant-modal-close').click();
|
|
|
|
// });
|
|
|
|
|
|
|
|
it('Can change to Followers tab', () => {
|
|
|
|
cy.contains('Followers').click();
|
|
|
|
});
|
|
|
|
|
|
|
|
// Verify content header values
|
|
|
|
it('Has correct content header values', () => {
|
2022-11-22 13:06:37 -08:00
|
|
|
cy.get('.header-title').should('have.text', 'New Owncast Server');
|
2022-11-04 20:04:13 -07:00
|
|
|
cy.get('.header-subtitle').should(
|
|
|
|
'have.text',
|
2022-11-22 13:15:52 -08:00
|
|
|
'This is a new live video streaming server powered by Owncast.'
|
2022-11-04 20:04:13 -07:00
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('Has correct global header values', () => {
|
2022-12-11 21:06:20 -08:00
|
|
|
cy.get('#global-header-text').should('have.text', 'New Owncast Server');
|
2022-11-04 20:04:13 -07:00
|
|
|
});
|
|
|
|
});
|