Skip to content

Commit

Permalink
Merge branch 'main' into wp-soln-Press02289
Browse files Browse the repository at this point in the history
* main:
  update solutions app test
  NPM(deps): Bump @heroicons/react from 2.1.5 to 2.2.0
  • Loading branch information
circlecube committed Nov 22, 2024
2 parents afd5648 + 22dd9c2 commit c6f1135
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"author": "arati bhandare",
"dependencies": {
"@heroicons/react": "^2.1.5",
"@heroicons/react": "^2.2.0",
"@newfold/ui-component-library": "^1.1.0",
"@wordpress/api-fetch": "^7.12.0"
},
Expand Down
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 c6f1135

Please sign in to comment.