Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: reorder tests in asset.e2e-spec.ts #9714

Merged
merged 2 commits into from
May 24, 2024

Conversation

midzelis
Copy link
Contributor

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.

@midzelis midzelis requested a review from danieldietzler as a code owner May 24, 2024 01:03
@jrasm91 jrasm91 merged commit 562c43b into immich-app:main May 24, 2024
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants