Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Aug 19, 2024
1 parent c16e1ef commit e6328d0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/cypress/e2e/admin-setup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@ describe("Plugin Setup Tests", () => {
});

it("Brightcove Video Connect can be activated and deactivated", () => {
cy.login();
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.activatePlugin("brightcove-video-connect");
// cy.get('.configure-brightcove').should('exist');
// });
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'));
Expand Down

0 comments on commit e6328d0

Please sign in to comment.