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
#7)

* 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 f9ed150 commit 12c9e93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cypress/tests/functional/WebFeed.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe('Web Feed plugin tests', () => {
it('The side bar and the feeds are displayed properly', () => {
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();

// Access the settings and setup some options
Expand All @@ -31,7 +33,9 @@ describe('Web Feed plugin tests', () => {

// Enable the wed feed plugin's sidebar
cy.reload();
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="appearance-button"]').click();

cy.get('#appearance-setup-button').click();
Expand Down

0 comments on commit 12c9e93

Please sign in to comment.