0
owncast/test/automated/browser/cypress/e2e/offline/01_offline_basic.cy.js
Nathan 32c3f6a9b6
fix: #2668 Page Vertical Spacing Issues (#2863)
* fix: #2668 Page Vertical Spacing Issues

* Update test to reflect mobile work

* chore: refactor action buttons

---------

Co-authored-by: thisProjects <wibbet@wobbet.com>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2023-04-26 15:31:23 -07:00

51 lines
1.3 KiB
JavaScript

import { setup } from '../../support/setup.js';
setup();
describe(`Basic tests`, () => {
it('Can visit the page', () => {
cy.visit('http://localhost:8080/');
});
// Offline banner
it('Has correct offline banner values', () => {
cy.contains(
'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');
});
// Verify the tags show up
it('Has correct tags visible', () => {
cy.contains('#owncast').should('exist');
cy.contains('#streaming').should('exist');
});
// 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', () => {
cy.get('.header-title').should('have.text', 'New Owncast Server');
cy.get('.header-subtitle').should(
'have.text',
'This is a new live video streaming server powered by Owncast.'
);
});
it('Has correct global header values', () => {
cy.get('#global-header-text').should('have.text', 'New Owncast Server');
});
});