Check offline banner values before scrolling in browser test

This commit is contained in:
Gabe Kangas 2022-12-21 17:36:11 -08:00
parent 3b1a8828bb
commit 543d8f258f
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -6,6 +6,13 @@ describe(`Basic tests`, () => {
cy.visit('http://localhost:8080/');
});
// Offline banner
it('Has correct offline banner values', () => {
cy.contains(
'This stream is offline. Be notified the next time New Owncast Server goes live.'
).should('be.visible');
});
// Verify the tags show up
it('Has correct tags visible', () => {
cy.contains('#owncast').should('be.visible');
@ -40,11 +47,4 @@ describe(`Basic tests`, () => {
it('Has correct global header values', () => {
cy.get('#global-header-text').should('have.text', 'New Owncast Server');
});
// Offline banner
it('Has correct offline banner values', () => {
cy.contains(
'This stream is offline. Be notified the next time New Owncast Server goes live.'
).should('be.visible');
});
});