score:0

Accepted answer

waitfor returns a promise so you need to use await:

await waitfor(() => { 
  expect(fakesetphotos).tohavebeencalledwith([1, 2, 3]); 
  expect(inputfield.value).tobe(''); 
});

Related Query

More Query from same tag