fix: enforce current physique range in funnel
This commit is contained in:
1 parent
d8d635e1ee
commit
1515b3e291
12 files changed
+92
-13
No files matched your search
@@ -122,6 +122,7 @@ 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 },
|
||||
@@ -137,7 +138,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: true, minScore: 4, maxScore: 7 },
|
||||
physiqueTargeting: { enabled: false, minScore: 1, maxScore: 10 },
|
||||
sourceImageUrl: 'https://i.redd.it/candidate-1.jpg',
|
||||
strategyId: 'direct-observation', experimentId: 'strategies:direct-observation:abc123',
|
||||
promptVersion: 'abc123', selectionReason: 'exploit', modelId: 'example/image-model',
|
||||
@@ -162,7 +163,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('Target 4–7');
|
||||
expect(preparation).toHaveTextContent('Current target 1–6 · Prepared with filter off');
|
||||
expect(preparation).toHaveTextContent('example/image-model');
|
||||
const sourceImage = within(preparation).getByRole('img', { name: 'Source post: [25F] A potential post' });
|
||||
expect(sourceImage).toHaveClass('is-blurred');
|
||||
|
||||
Reference in new issue
Block a user