Skip to content

Instantly share code, notes, and snippets.

@syossan27
Last active October 19, 2022 15:27
Show Gist options
  • Save syossan27/e3584197ca5ac624b21f0f84e0fa33d0 to your computer and use it in GitHub Desktop.
Save syossan27/e3584197ca5ac624b21f0f84e0fa33d0 to your computer and use it in GitHub Desktop.
cy.intercept({
url: '/g/collect*',
method: 'POST',
hostname: "analytics.google.com"
}).as('ga_req');
cy.visit([テストしたいページのURL]);
cy.wait('@ga_req', {timeout: 30000}).its('response.statusCode').should('equal', 204);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment