diff --git a/cypress/integration/configuration.plex.spec.js b/cypress/integration/configuration.plex.spec.js index cb2b48a..048e6ef 100644 --- a/cypress/integration/configuration.plex.spec.js +++ b/cypress/integration/configuration.plex.spec.js @@ -15,7 +15,7 @@ function spyOnAddEventListener(win) { } } -describe('Hooks', function () { +describe('Plex Configuration Tests', function () { before(function () { cy.visit('/configuration', {onBeforeLoad: spyOnAddEventListener}); @@ -142,7 +142,7 @@ describe('Hooks', function () { .click(); //Wait for timeout from plex - cy.wait(1000); + cy.wait(5000); cy.get('#plexSpinner') .should('not.be.visible'); diff --git a/cypress/integration/configuration.spec.js b/cypress/integration/configuration.spec.js index 30cd3c9..9b16122 100644 --- a/cypress/integration/configuration.spec.js +++ b/cypress/integration/configuration.spec.js @@ -15,52 +15,54 @@ function spyOnAddEventListener(win) { } } -it('Clean configuration page load', () => { - cy.visit('/configuration', {onBeforeLoad: spyOnAddEventListener}); +describe('Configuration Tests', function () { + it('Clean configuration page load', () => { + cy.visit('/configuration', {onBeforeLoad: spyOnAddEventListener}); - cy.get('#configurationTab') - .should('have.attr', 'href', '/configuration') - .parent() - .should('have.attr', 'aria-current', 'page'); + cy.get('#configurationTab') + .should('have.attr', 'href', '/configuration') + .parent() + .should('have.attr', 'aria-current', 'page'); - cy.get('#librariesTab') - .should('have.attr', 'href', '/libraries') - .parent() - .should('not.have.attr', 'aria-current', 'page'); + cy.get('#librariesTab') + .should('have.attr', 'href', '/libraries') + .parent() + .should('not.have.attr', 'aria-current', 'page'); - cy.get('#recommendedTab') - .should('have.attr', 'href', '/recommended') - .parent() - .should('not.have.attr', 'aria-current', 'page'); + cy.get('#recommendedTab') + .should('have.attr', 'href', '/recommended') + .parent() + .should('not.have.attr', 'aria-current', 'page'); - cy.get('#rssTab') - .should('have.attr', 'href', '/rssCheck') - .parent() - .should('not.have.attr', 'aria-current', 'page'); + cy.get('#rssTab') + .should('have.attr', 'href', '/rssCheck') + .parent() + .should('not.have.attr', 'aria-current', 'page'); - cy.get('#aboutTab') - .should('have.attr', 'href', '/about') - .parent() - .should('not.have.attr', 'aria-current', 'page'); + cy.get('#aboutTab') + .should('have.attr', 'href', '/about') + .parent() + .should('not.have.attr', 'aria-current', 'page'); - cy.get('#tmdbTab') - .should('have.class', 'active'); + cy.get('#tmdbTab') + .should('have.class', 'active'); - cy.get('#plexTab') - .should('not.have.class', 'active'); + cy.get('#plexTab') + .should('not.have.class', 'active'); - cy.get('#folderTab') - .should('have.class', 'disabled'); + cy.get('#folderTab') + .should('have.class', 'disabled'); - cy.get('#tmdbTestError') - .should('not.be.visible'); + cy.get('#tmdbTestError') + .should('not.be.visible'); - cy.get('#tmdbTestSuccess') - .should('not.be.visible'); + cy.get('#tmdbTestSuccess') + .should('not.be.visible'); - cy.get('#tmdbSaveError') - .should('not.be.visible'); + cy.get('#tmdbSaveError') + .should('not.be.visible'); - cy.get('#tmdbSaveSuccess') - .should('not.be.visible'); -}); + cy.get('#tmdbSaveSuccess') + .should('not.be.visible'); + }); +}); \ No newline at end of file diff --git a/cypress/integration/configuration.tmdb.spec.js b/cypress/integration/configuration.tmdb.spec.js index 88fc02c..5c37c23 100644 --- a/cypress/integration/configuration.tmdb.spec.js +++ b/cypress/integration/configuration.tmdb.spec.js @@ -15,7 +15,7 @@ function spyOnAddEventListener(win) { } } -describe('Hooks', function () { +describe('TMDB Configuration Tests', function () { before(function () { cy.visit('/configuration', {onBeforeLoad: spyOnAddEventListener}); });