The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
const { H } = cy;
describe("scenarios > stats > snowplow", () => {
beforeEach(() => {
H.restore();
H.resetSnowplow();
cy.signInAsAdmin();
H.enableTracking();
});
it(
"should send a snowplow event when the stats ping is triggered on OSS",
{ tags: "@OSS" },
() => {
cy.request("POST", "api/testing/stats");
H.expectSnowplowEvent({
event: { event_name: "instance_stats" },
});
},
);
it("should send a snowplow event when the stats ping is triggered on EE", () => {
cy.request("POST", "api/testing/stats");
H.expectSnowplowEvent({
event: { event_name: "instance_stats" },
});
});
afterEach(() => {
H.expectNoBadSnowplowEvents();
});
});