We're looking to implement E2E testing in Cypress ...
# support
m
We're looking to implement E2E testing in Cypress - all of the test user account creations will have a single email, but will have different user IDs. Is there a way to easily suppress this user's events from being tracked by Rudderstack, so that it doesn't impact our downstream destinations?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
q
You can write a user transformation to drop these events before being sent to destinations.
m
Given not all of the events have an email in the properties, what would the best way be to make sure that all the track events get dropped?
q
if you want to drop all the track events then just check for event type and drop it
m
we only want to drop track events for this one email though
q
you can do the filtering based on any unique property.
m
sorry, to clarify - we are aware that we can do so. however, given not all of the track events we want to drop contain a property that has the email in it, we were wondering if there is any other way of just blocking events from a specified user that does not rely on transformations?
q
Not sure if you can write some logic in your instrumentation code to not collect the events for this particular email but if the event is being captured then transformation is the appropriate way to drop them before sending to destination