From 543d8f258f2fc4aa1bf2c2b90c098adb5e3701ce Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 21 Dec 2022 17:36:11 -0800 Subject: [PATCH] Check offline banner values before scrolling in browser test --- .../cypress/e2e/offline/01_offline_basic.cy.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 e686a8b83..6605dab29 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'); - }); });