Skip to content

Commit

Permalink
Update performancePageLocators.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ST2228 authored Jan 26, 2025
1 parent c9f638b commit f892b39
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cypress/support/pageObjects/performancePageLocators.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ class performancePageLocators {
.invoke('removeAttr', 'target')
.click();
cy.reload(forceReload);
cy.get('a.wp-block-pages-list__item__link.wp-block-navigation-item__content') // Adjust the selector as needed
.invoke('attr', 'href') // Extract the href attribute (the URL)
.then((url) => {
// Log the URL for debugging
cy.log(url);
cy.get(this._samplePageButton).trigger('mouseover');
//cy.get('.wp-block-pages-list__item__link').trigger('mouseover');
cy.wait('@apiRequest');
Expand Down

0 comments on commit f892b39

Please sign in to comment.