fix: keep outreach funnel response rollout-compatible
This commit is contained in:
1 parent
1515b3e291
commit
5c57ed337b
6 files changed
+12
-55
No files matched your search
@@ -122,7 +122,6 @@ describe('dashboard foundation', () => {
|
||||
})),
|
||||
http.get('/api/outreach', () => HttpResponse.json({
|
||||
generatedAt: Date.parse('2026-08-09T08:00:00Z'),
|
||||
physiqueTargeting: { enabled: true, minScore: 1, maxScore: 6 },
|
||||
activeCount: 3,
|
||||
stages: { discovered: 1, screening: 0, ready: 1, sending: 0, retryable: 1 },
|
||||
outcomes: { sent: 12, rejected: 7 },
|
||||
@@ -138,7 +137,7 @@ describe('dashboard foundation', () => {
|
||||
message: 'You look incredible in that pose — what inspired this post?',
|
||||
imageAnalysis: 'VISIBLE_FACTS:\nBODY: VISIBLE - full-body pose',
|
||||
detectedGender: 'female', attractivenessScore: 68, physiqueScore: 6,
|
||||
physiqueTargeting: { enabled: false, minScore: 1, maxScore: 10 },
|
||||
physiqueTargeting: { enabled: true, minScore: 1, maxScore: 6 },
|
||||
sourceImageUrl: 'https://i.redd.it/candidate-1.jpg',
|
||||
strategyId: 'direct-observation', experimentId: 'strategies:direct-observation:abc123',
|
||||
promptVersion: 'abc123', selectionReason: 'exploit', modelId: 'example/image-model',
|
||||
@@ -163,7 +162,7 @@ describe('dashboard foundation', () => {
|
||||
expect(preparation).toHaveTextContent('You look incredible in that pose');
|
||||
expect(preparation).toHaveTextContent('68/100');
|
||||
expect(preparation).toHaveTextContent('6/10');
|
||||
expect(preparation).toHaveTextContent('Current target 1–6 · Prepared with filter off');
|
||||
expect(preparation).toHaveTextContent('Current target 1–6');
|
||||
expect(preparation).toHaveTextContent('example/image-model');
|
||||
const sourceImage = within(preparation).getByRole('img', { name: 'Source post: [25F] A potential post' });
|
||||
expect(sourceImage).toHaveClass('is-blurred');
|
||||
|
||||
@@ -73,7 +73,6 @@ describe('outreach route', () => {
|
||||
|
||||
expect(response.status).toBe(200);
|
||||
expect(parsed).toMatchObject({
|
||||
physiqueTargeting: { enabled: true, minScore: 1, maxScore: 6 },
|
||||
activeCount: 6,
|
||||
stages: { discovered: 2, screening: 1, ready: 1, sending: 1, retryable: 1 },
|
||||
outcomes: { sent: 2, rejected: 1 },
|
||||
@@ -85,7 +84,7 @@ describe('outreach route', () => {
|
||||
message: 'Prepared opener for Alice',
|
||||
attractivenessScore: 68,
|
||||
physiqueScore: 6,
|
||||
physiqueTargeting: { enabled: true, minScore: 4, maxScore: 7 },
|
||||
physiqueTargeting: { enabled: true, minScore: 1, maxScore: 6 },
|
||||
sourceImageUrl: 'https://i.redd.it/post-1.jpg',
|
||||
strategyId: 'direct-observation',
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user