Skip to content

Commit

Permalink
pkp/pkp-lib#9890 Update target selector for nav items in cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Sep 13, 2024
1 parent 449913e commit 6e99ed0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cypress/tests/functional/WebFeed.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ describe('Web Feed plugin tests', () => {
it('The side bar and the feeds are displayed properly', () => {
cy.login('admin', 'admin', 'publicknowledge');

cy.get('nav div[data-pc-section="header"] a span').contains('Settings').click();
cy.get('nav div[data-pc-section="itemcontent"] a span').contains('Website').click({ force: true });
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 @@ -32,8 +33,9 @@ describe('Web Feed plugin tests', () => {

// Enable the wed feed plugin's sidebar
cy.reload();
cy.get('nav div[data-pc-section="header"] a span').contains('Settings').click();
cy.get('nav div[data-pc-section="itemcontent"] a span').contains('Website').click({ force: true });
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 6e99ed0

Please sign in to comment.