Remove browsing selection ceilings
This commit is contained in:
1 parent
c028637556
commit
bc42c55555
14 files changed
+81
-53
No files matched your search
@@ -278,12 +278,12 @@ describe('GrowthPage', () => {
|
||||
|
||||
const size = screen.getByLabelText('Selections per session');
|
||||
await user.clear(size);
|
||||
await user.type(size, '4');
|
||||
await user.type(size, '25');
|
||||
await user.click(screen.getByRole('button', { name: 'Save session size' }));
|
||||
|
||||
await waitFor(() => expect(requests).toEqual(expect.arrayContaining([
|
||||
expect.objectContaining({ method: 'PATCH', body: { minimumGapMs: 5_400_000 } }),
|
||||
expect.objectContaining({ method: 'PATCH', body: { selectionsPerSession: 4 } }),
|
||||
expect.objectContaining({ method: 'PATCH', body: { selectionsPerSession: 25 } }),
|
||||
])));
|
||||
});
|
||||
|
||||
@@ -293,14 +293,14 @@ describe('GrowthPage', () => {
|
||||
|
||||
const minimum = await screen.findByLabelText('Daily minimum');
|
||||
await user.clear(minimum);
|
||||
await user.type(minimum, '6');
|
||||
await user.type(minimum, '20');
|
||||
const maximum = screen.getByLabelText('Daily maximum');
|
||||
await user.clear(maximum);
|
||||
await user.type(maximum, '9');
|
||||
await user.type(maximum, '40');
|
||||
await user.click(screen.getByRole('button', { name: 'Save daily range' }));
|
||||
|
||||
await waitFor(() => expect(requests).toContainEqual(expect.objectContaining({
|
||||
method: 'PATCH', body: { dailyTargetMin: 6, dailyTargetMax: 9 },
|
||||
method: 'PATCH', body: { dailyTargetMin: 20, dailyTargetMax: 40 },
|
||||
})));
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user