https://cypress.io logo
Segment test with Cypress
# i-need-help
s
How can I test segment events with Cypress? since I don't see that they send network events ,so how can I track the events that are sending while performing some action in the web application https://segment.com/
b
iirc segment definitely should be sending network requests - but alternatively you should be able to use
cy.spy
(https://docs.cypress.io/api/commands/spy) to spy on the analytics library (not sure if that'd work for analytics 2.0)
4 Views