Skip to content

Commit

Permalink
Merge pull request #3147 from 10up/fix/2971
Browse files Browse the repository at this point in the history
Fix: Intermittent tests failures
  • Loading branch information
felipeelia authored Nov 23, 2022
2 parents 9d42f13 + 6fe2c77 commit 723f0db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cypress/integration/features/woocommerce.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,11 @@ describe('WooCommerce Feature', () => {
thirdProductId = id;
});

cy.intercept('POST', '/wp-admin/admin-ajax.php*').as('ajaxRequest');
cy.get('@thirdProduct')
.drag('#the-list tr:eq(0)', { force: true })
.then(() => {
cy.wait('@ajaxRequest').its('response.statusCode').should('eq', 200);
cy.get('#the-list tr:eq(0)').should('have.id', thirdProductId);

cy.refreshIndex('post').then(() => {
Expand Down

0 comments on commit 723f0db

Please sign in to comment.