Skip to content

Commit

Permalink
update solutions app test
Browse files Browse the repository at this point in the history
navigate to the entitlements page via nav click rather than directly to page
  • Loading branch information
circlecube committed Nov 21, 2024
1 parent 4e6ec22 commit 00c56b6
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions tests/cypress/integration/solutions-app.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ describe( 'My Plugins and Tools in Plugin App', { testIsolation: true }, () => {
).as( 'getEntitlements' );

cy.visit(
'/wp-admin/admin.php?page=' +
Cypress.env( 'pluginId' ) +
'#/my_plugins_and_tools',
'/wp-admin/admin.php?page=' + Cypress.env( 'pluginId' ) + '#/',
{
onLoad() {
cy.window().then( ( win ) => {
Expand All @@ -59,16 +57,11 @@ describe( 'My Plugins and Tools in Plugin App', { testIsolation: true }, () => {
);
} );

cy.wait( '@getEntitlements' );

cy.get( 'a.wppbh-app-navitem[href="#/my_plugins_and_tools"]' ).should(
'be.visible'
);

cy.get( 'a.wppbh-app-navitem[href="#/my_plugins_and_tools"]' )
.should( 'be.visible' )
.click();

cy.get( 'a.wppbh-app-navitem[href="#/my_plugins_and_tools"]' ).should(
'be.visible'
);
cy.wait( '@getEntitlements', { timeout: 10000 } );

cy.get( '.newfold-entitlements-container' )
.contains( 'h2', 'Plugins & Tools' )
Expand Down

0 comments on commit 00c56b6

Please sign in to comment.