Skip to content

Commit

Permalink
pkp/pkp-lib#9890 Update cypress test related to the new sidebar navig… (
Browse files Browse the repository at this point in the history
#87)

* pkp/pkp-lib#9890 Update cypress test related to the new sidebar navigation

* pkp/pkp-lib#9890 Update target selector for nav items in cypress test
  • Loading branch information
blesildaramirez authored Sep 18, 2024
1 parent f935845 commit 8222089
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cypress/tests/functional/CustomBlocks.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ describe('Custom Block Manager plugin tests', function() {
it('Creates and exercises a custom block', function() {
cy.login('admin', 'admin', 'publicknowledge');

cy.get('.app__nav a').contains('Website').click();
cy.get('nav').contains('Settings').click();
// Ensure submenu item click despite animation
cy.get('nav').contains('Website').click({ force: true });
cy.get('button[id="plugins-button"]').click();

// Find and enable the plugin
Expand All @@ -36,7 +38,9 @@ describe('Custom Block Manager plugin tests', function() {

// FIXME: The settings area has to be reloaded before the new block will appear.a
// This click should be unnecessary.
cy.get('.app__nav a').contains('Website').click();
cy.get('nav').contains('Settings').click();
// Ensure submenu item click despite animation
cy.get('nav').contains('Website').click({ force: true });
cy.get('#appearance > .pkpTabs > .pkpTabs__buttons > #appearance-setup-button').click();
cy.get('#appearance-setup span:contains("test-custom-block"):first').click();
cy.get('#appearance-setup button:contains("Save")').click();
Expand Down

0 comments on commit 8222089

Please sign in to comment.