cypress-pipe
                                
                                
                                
                                    cypress-pipe copied to clipboard
                            
                            
                            
                        Update plugin to be compatible with Cypress 10
Hello 👋 I'm writing on behalf of the Cypress DX team. We wanted to notify you that some changes may need to be made to this plugin to ensure that it works in Cypress 10.
For more information, here is our official plugin update guide.
It would be ever so helpful if someone would update this repo for Cypress 10!
Edit: This comment is no longer accurate, it did not solve the root issue.
This plugin seems to work fine with Cypress 10 after I replaced return true or return false with return cy.wrap(true) etc. I'm using the pipe function to assert that my Redux store is in a certain state, so basically:
function applyCondition(win: any) {
  const result = ...;
  if (!result) {
    cy.log("Failed check for", result);
  } else {
    cy.log("Passed check", result);
  }
  // This line used to be "return result;" in cypress 9
  return cy.wrap(result);
}
cy.window().pipe(applyCondition).should("be.true");
                                    
                                    
                                    
                                
I can migrate the plugin to cypress 10
Here is the PR for migration - https://github.com/NicholasBoll/cypress-pipe/pull/34
I previously commented that this plugin "seems to work" with Cypress 10, but after a closer look I was wrong. I've stopped using cypress-pipe and am now using https://www.npmjs.com/package/cypress-wait-until using a similar code snippet as above, and it is successfully retrying multiple times.