test(frontend): oppdater GameCard-testene til srcSet og sizes #183
+14
−8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
To ting gjorde CI rød på
dev, sådevkunne ikke merges tilmain:srcSetogsizes(fra fix/uskarpe-bilder), ogsrcer alltid 420px-kopien som reserve. To tester sjekket fortsatt atsrcbytter størrelse etter visning, og feilet. De er skrevet om til å sjekke det koden faktisk gjør nå:srcer en nedskalert kopi, ikke originalen, ogsrcSetinneholder alle størrelsene (200–1280px)sizesfølger visningen (liste 150px, utstilling full bredde på telefon), så nettleseren velger riktig filbackend/backend-api.mdvar ikke formatert, såpnpm format:checkfeilet.Ingen endringer i selve appen, bare tester og dokumentasjon.
Tester
Alle 137 frontend-tester består.
Changes made
Checklist
Bruk av KI
Feilene ble funnet og testene skrevet om med hjelp fra Claude, gjennomgått og implementert av meg.