Skip to content

Commit

Permalink
refactor: Improve analytics event tracking in smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
gatzjames authored and filfreire committed Jun 5, 2024
1 parent 0387e5a commit c6779bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/insomnia-smoke-test/tests/smoke/analytics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ test('analytics events are sent', async ({ page, app }) => {
});
});

// actions cause analytics events:
// Create a collection and requests that cause analytics events:
await page.getByRole('button', { name: 'New Collection' }).click();
await page.getByRole('button', { name: 'Create', exact: true }).click();

for (let i = 0; i < 10; i++) {
await page.getByLabel('Create in collection').click();
await page.getByRole('menuitemradio', { name: 'HTTP Request' }).press('Enter');
}
// TODO(filipe) - check for userID and anonymousID, logout and then check for anonymousID only?

const segmentLogs = await app.evaluate(() => globalThis.segmentLogs);

Expand Down

0 comments on commit c6779bc

Please sign in to comment.