Skip to content

Commit

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

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

* pkp/pkp-lib#9890 Update target selector for nav items in cypress tests
  • Loading branch information
blesildaramirez authored Sep 18, 2024
1 parent e77862a commit 17be34c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cypress/tests/functional/StaticPages.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ describe('Static Pages plugin tests', function() {
it('Creates and exercises a static page', 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 @@ -26,7 +28,9 @@ describe('Static Pages plugin tests', function() {
cy.visit('');
cy.get('a:contains("admin")').click();
cy.get('ul[id="navigationUser"] a:contains("Dashboard")').click();
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="staticPages-button"]').click();

// Create a static page
Expand Down

0 comments on commit 17be34c

Please sign in to comment.