Skip to content

Commit

Permalink
Merge pull request #15 from newfold-labs/update/tests-again
Browse files Browse the repository at this point in the history
Update tests again
  • Loading branch information
circlecube authored Feb 8, 2024
2 parents cbd8a5d + c7e7cdc commit 01bdafe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/cypress/integration/global-ctb.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const global_ctb_products = require( '../fixtures/global-ctb-products.json' );

describe( 'Click to buy', function () {
before( () => {
cy.visit( '/wp-admin/index.php' );
cy.exec( 'npx wp-env run cli wp transient delete newfold_marketplace' );
cy.intercept(
{
Expand All @@ -17,7 +18,7 @@ describe( 'Click to buy', function () {
Cypress.env( 'pluginId' ) +
'#/marketplace',
{
onBeforeLoad() {
onLoad() {
cy.window().then( ( win ) => {
win.NewfoldRuntime.capabilities.canAccessGlobalCTB = true;
} );
Expand Down

0 comments on commit 01bdafe

Please sign in to comment.