mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
Added e2e test
This commit is contained in:
parent
8f1e334473
commit
fdd78e30a7
1 changed files with 14 additions and 0 deletions
|
|
@ -156,6 +156,20 @@ describe('/search', () => {
|
||||||
should: 'should sort my assets in reverse',
|
should: 'should sort my assets in reverse',
|
||||||
deferred: () => ({ dto: { order: 'asc', size: 2 }, assets: [assetCyclamen, assetNotocactus] }),
|
deferred: () => ({ dto: { order: 'asc', size: 2 }, assets: [assetCyclamen, assetNotocactus] }),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
should: 'should sort by date added',
|
||||||
|
deferred: () => ({
|
||||||
|
dto: { order: 'desc', orderBy: 'DATE_ADDED', size: 1 },
|
||||||
|
assets: [assetLast],
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
should: 'should sort by date added in reverse',
|
||||||
|
deferred: () => ({
|
||||||
|
dto: { order: 'asc', orderBy: 'DATE_ADDED', size: 2 },
|
||||||
|
assets: [assetFalcon, assetDenali],
|
||||||
|
}),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
should: 'should support pagination',
|
should: 'should support pagination',
|
||||||
deferred: () => ({ dto: { order: 'asc', size: 1, page: 2 }, assets: [assetNotocactus] }),
|
deferred: () => ({ dto: { order: 'asc', size: 1, page: 2 }, assets: [assetNotocactus] }),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue