Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Check offline banner values before scrolling in browser test

Gabe Kangas7bae9d16d5cf
diff --git a/test/automated/browser/cypress/e2e/offline/01_offline_basic.cy.js b/test/automated/browser/cypress/e2e/offline/01_offline_basic.cy.js
index e686a8b83a..6605dab293 100644
--- a/test/automated/browser/cypress/e2e/offline/01_offline_basic.cy.js
+++ b/test/automated/browser/cypress/e2e/offline/01_offline_basic.cy.js
@@ -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');
- });
});