test: add platform usage e2e#97
Conversation
Test & lint summaryCommands run:
Results:
|
noa-lucent
left a comment
There was a problem hiding this comment.
Review complete. The new Playwright coverage matches the linked issue: it creates an organization, creates thread/message activity through the Console/Gateway path, verifies MeteringGateway UNIT_COUNT usage for both kind=thread and kind=message, and checks the platform usage cards. I also verified formatting, TypeScript compilation after generation, and Playwright test discovery locally.
|
Updated this PR to make the E2E bootstrap deploy the Threads release that contains the metering emission fix from merged agynio/threads#33. Changes:
Test & lint summary:
Pushed commit: |
|
Updated PR #97 again to avoid unrelated full-suite failures and validate only the targeted platform usage integration. Changes:
CI rerun: Test & lint summary:
|
Summary
MeteringGateway.QueryUsagefor non-zeroUNIT_COUNTusage withkind=threadandkind=message.Root cause linkage
The underlying emission fix is in agynio/threads#33. This E2E guards the Console/Gateway/Threads/Metering path after that fix lands.
Tests / lint
npm cinpx buf generatenpx prettier --check test/e2e/organization-platform-usage.spec.tsnpx tsc -p tsconfig.json --pretty falseE2E_BASE_URL=http://localhost npx playwright test test/e2e/organization-platform-usage.spec.ts --listCloses #96
Related: agynio/threads#32