|
|
|
@ -45,4 +45,23 @@ describe('Link Device', function() {
|
|
|
|
|
await common.timeout(1000);
|
|
|
|
|
await common.triggerUnlinkApp2FromApp(app, app2);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
describe('linkDevice:sync no groups, closed group, nor open groups', async () => {
|
|
|
|
|
await common.linkApp2ToApp(app, app2, common.TEST_PUBKEY1);
|
|
|
|
|
await common.timeout(2000);
|
|
|
|
|
|
|
|
|
|
// get logs at this stage (getRenderProcessLogs() clears the app logs)
|
|
|
|
|
const secondaryRenderLogs = await app2.client.getRenderProcessLogs();
|
|
|
|
|
// pairing request message sent from secondary to primary pubkey
|
|
|
|
|
await common.logsContains(secondaryRenderLogs, `Sending pairing-request:pairing-request message to ${common.TEST_PUBKEY1}`);
|
|
|
|
|
|
|
|
|
|
const primaryRenderLogs = await app.client.getRenderProcessLogs();
|
|
|
|
|
// primary grant pairing request
|
|
|
|
|
await common.logsContains(primaryRenderLogs, 'Sending pairing-request:pairing-request message to OUR SECONDARY PUBKEY');
|
|
|
|
|
|
|
|
|
|
// no friends, no closed groups, no open groups. we should see those message sync in the log
|
|
|
|
|
await common.logsContains(primaryRenderLogs, 'No closed group to sync.');
|
|
|
|
|
await common.logsContains(primaryRenderLogs, 'No open groups to sync');
|
|
|
|
|
await common.logsContains(primaryRenderLogs, 'No contacts to sync.');
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|