feat(media): pagination

This commit is contained in:
Florian Sylvain committed 2026-10-13 19:54:59 +02:00
1 parent 04dc151ed7
commit 63c1e7076e
65 files changed
+2960 -365

No files matched your search

@@ -234,14 +234,15 @@ describe('Group scrolled, one card expanded', () => {
expect(published.text()).toContain('No request body.')
})
it('shows the six media query parameters on the media list', async () => {
it('shows the seven media query parameters on the media list', async () => {
const wrapper = await mountIntegration()
const list = await expand(wrapper, 'GET /v1/media/')
for (const name of ['q', 'hash', 'cursor', 'filter', 'sort', 'limit']) {
for (const name of ['q', 'hash', 'filter', 'sort', 'variants', 'page', 'size']) {
expect(list.text()).toContain(name)
}
expect(list.text()).toContain('1 to 100. Default 24.')
expect(list.text()).toContain('5, 25, 50 or 100. Default 25.')
expect(list.text()).not.toContain('next_cursor')
})
it('states the multipart field on the upload and the owner-only 403 and rate limit on invites', async () => {