Skip to content

Commit

Permalink
feat: use window.fetch with polyfill instead of jquery (#5whc87)
Browse files Browse the repository at this point in the history
  • Loading branch information
matzeeable committed Jun 29, 2020
1 parent 3c31b59 commit e7e7112
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/wp-reactjs-starter/test/cypress/support/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ import "cypress-plugin-retries";
Cypress.Cookies.defaults({
whitelist: /wordpress_/
});

// `window.fetch` does not work yet with cypress (https://git.io/JfFdL)
Cypress.on("window:before:load", (win: Window) => {
win.fetch = null;
});

0 comments on commit e7e7112

Please sign in to comment.