Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix sync test

Abdullah Attab66caa984846
diff --git a/apps/web/__e2e__/sync.test.ts b/apps/web/__e2e__/sync.test.ts
index c74dfeb6c..4f9521195 100644
--- a/apps/web/__e2e__/sync.test.ts
+++ b/apps/web/__e2e__/sync.test.ts
@@ -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)));