mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
refactor: search e2e (#7732)
This commit is contained in:
parent
ffdd504008
commit
89f6190fb0
8 changed files with 239 additions and 339 deletions
e2e/src
|
@ -173,6 +173,7 @@ export const utils = {
|
|||
},
|
||||
|
||||
waitForWebsocketEvent: async ({ event, assetId, timeout: ms }: WaitOptions): Promise<void> => {
|
||||
console.log(`Waiting for ${event} [${assetId}]`);
|
||||
const set = events[event];
|
||||
if (set.has(assetId)) {
|
||||
return;
|
||||
|
@ -232,6 +233,10 @@ export const utils = {
|
|||
const assetData = dto?.assetData?.bytes || makeRandomImage();
|
||||
const filename = dto?.assetData?.filename || 'example.png';
|
||||
|
||||
if (dto?.assetData?.bytes) {
|
||||
console.log(`Uploading ${filename}`);
|
||||
}
|
||||
|
||||
const builder = request(app)
|
||||
.post(`/asset/upload`)
|
||||
.attach('assetData', assetData, filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue