Skip to content

Instantly share code, notes, and snippets.

@fostergn
Last active May 4, 2020 17:10
Show Gist options
  • Save fostergn/833fcfddb6ff4efbc2b78da1b0f28774 to your computer and use it in GitHub Desktop.
Save fostergn/833fcfddb6ff4efbc2b78da1b0f28774 to your computer and use it in GitHub Desktop.
it('Checks popup status', () => {
cy.server();
cy.route(`https://dev-api.test.io/public/popup/`).as('checkStatus');
cy.wait('@checkStatus').then((event) => {
console.log('event: ', event)
expect(event.response.body).to.eql({
enabled: true
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment