[PR #9714] test: reorder tests in asset.e2e-spec.ts #12607

Closed
opened 2026-02-05 15:00:03 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/immich-app/immich/pull/9714

State: closed
Merged: Yes


This reorders some tests in prep for later a later PR that will re-use the POST createAsset api method to be run in a loop with the replaceAsset api method.

This moves the POST tests to the end of the file, since we need to rerun setup on a clean db for every loop. This also broke the map-marker tests, since they were using assets created earlier in the suite - so we create a new setup method for those test that just upload the tests.

finally, move some of the for loops that define tests to use it.each() which is just a tiny bit nicer.

**Original Pull Request:** https://github.com/immich-app/immich/pull/9714 **State:** closed **Merged:** Yes --- This reorders some tests in prep for later a later PR that will re-use the POST createAsset api method to be run in a loop with the replaceAsset api method. This moves the POST tests to the end of the file, since we need to rerun setup on a clean db for every loop. This also broke the map-marker tests, since they were using assets created earlier in the suite - so we create a new setup method for those test that just upload the tests. finally, move some of the for loops that define tests to use it.each() which is just a tiny bit nicer.
OVERLORD added the pull-request label 2026-02-05 15:00:03 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#12607