Align e2e-prod suite with the monolith API; drop dead applyOverride; treat run_not_active as terminal
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, it, expect, beforeAll, vi } from 'vitest';
|
||||
import { adminApi, loadArtifact, makeProdClient } from './_setup/harness.js';
|
||||
import { grantCurrency, loadArtifact, makeProdClient } from './_setup/harness.js';
|
||||
import type { SeedArtifact } from './_setup/types.js';
|
||||
import type { NotificationEffect, StoreOfferEffect } from '../../src/index.js';
|
||||
import { getScenarioRuntime } from '../../src/client/RudderClient.js';
|
||||
@@ -31,13 +31,11 @@ describe('e2e-prod: scenarios', () => {
|
||||
|
||||
// The boundary buy uses the paid offer — fund the wallet so the purchase succeeds.
|
||||
const playerId = (await client.player.reload()).player!.id!;
|
||||
await adminApi(artifact).post(
|
||||
`/platform/v1/projects/${artifact.projectId}/players/${playerId}/wallet/adjust`,
|
||||
{
|
||||
currencyCode: artifact.store.paidPrice.currency,
|
||||
amount: artifact.store.paidPrice.amount,
|
||||
reason: 'e2e scenario funding',
|
||||
},
|
||||
await grantCurrency(
|
||||
artifact,
|
||||
playerId,
|
||||
artifact.store.paidPrice.currency,
|
||||
artifact.store.paidPrice.amount,
|
||||
);
|
||||
|
||||
// First notification dispatched.
|
||||
|
||||
Reference in New Issue
Block a user