diff --git a/tests/cypress/e2e/admin-setup.test.js b/tests/cypress/e2e/admin-setup.test.js index 2f73811..e843ee2 100644 --- a/tests/cypress/e2e/admin-setup.test.js +++ b/tests/cypress/e2e/admin-setup.test.js @@ -1,24 +1,24 @@ describe("Plugin Setup Tests", () => { before(() => { - cy.login(); // We start fresh before running our tests. cy.deleteBrightcoveOptions(); }); - it("Brightcove Video Connect can be activated and deactivated", () => { + beforeEach(() => { cy.login(); + }); + + it("Brightcove Video Connect can be activated and deactivated", () => { cy.activatePlugin("brightcove-video-connect"); cy.deactivatePlugin("brightcove-video-connect"); }); it("Display admin notice asking to configure the plugin displays when activating the plugin for the first time", () => { - cy.login(); cy.activatePlugin("brightcove-video-connect"); cy.get('.configure-brightcove').should('exist'); }); it( "Can successfully connect to Brightcove", () => { - cy.login(); cy.visitAdminPage('?page=page-brightcove-edit-source'); cy.get('#source-name').type('Cypress'); cy.get('#source-account-id').type(Cypress.env('brightcoveAccountId'));