mirror of
https://github.com/JasonHHouse/gaps.git
synced 2026-02-09 12:18:51 -06:00
Cleaning up exsiting cypress tests
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
@@ -15,7 +15,7 @@ function spyOnAddEventListener(win) {
|
||||
}
|
||||
}
|
||||
|
||||
describe('Hooks', function () {
|
||||
describe('TMDB Configuration Tests', function () {
|
||||
before(function () {
|
||||
cy.visit('/configuration', {onBeforeLoad: spyOnAddEventListener});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user