web: fix sync test

This commit is contained in:
Abdullah Atta
2023-07-05 12:14:58 +05:00
parent 81cac1e54f
commit b66caa9848

View File

@@ -39,7 +39,7 @@ async function actAndSync<T>(
) {
const results = await Promise.all([
...actions.filter((a) => !!a),
...devices.map((d) => d.waitForSync("synced", "now"))
...devices.map((d) => d.waitForSync("completed"))
]);
await Promise.all(devices.map((d) => d.page.waitForTimeout(2000)));