Skip to content

Commit d57562c

Browse files
gggritsoclaude
andcommitted
test(project-detail): Update apdex score card test for relative period params
Update mock matchers and assertions to expect statsPeriodStart/statsPeriodEnd instead of absolute start/end dates, matching the implementation change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0721536 commit d57562c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

static/app/views/projectDetail/projectScoreCards/projectApdexScoreCard.spec.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ describe('ProjectDetail > ProjectApdex', () => {
3535
],
3636
},
3737
status: 200,
38+
match: [MockApiClient.matchQuery({statsPeriodStart: '28d'})],
3839
});
3940

4041
currentDataEndpointMock = MockApiClient.addMockResponse({
@@ -86,8 +87,8 @@ describe('ProjectDetail > ProjectApdex', () => {
8687
field: ['apdex()'],
8788
project: ['1'],
8889
query: 'event.type:transaction count():>0',
89-
start: '2017-09-19T02:41:20',
90-
end: '2017-10-03T02:41:20',
90+
statsPeriodStart: '28d',
91+
statsPeriodEnd: '14d',
9192
},
9293
})
9394
);

0 commit comments

Comments
 (0)