message functions init
parent
553713c311
commit
9d7d3bbe6e
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"storageProfile": "testIntegration2Profile",
|
|
||||||
"openDevTools": false,
|
|
||||||
"updatesEnabled": false,
|
|
||||||
"localServerPort": "8082"
|
|
||||||
}
|
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"storageProfile": "testIntegration3Profile",
|
||||||
|
"openDevTools": false,
|
||||||
|
"updatesEnabled": false,
|
||||||
|
"localServerPort": "8489"
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
/* eslint-disable prefer-destructuring */
|
||||||
|
/* eslint-disable more/no-then */
|
||||||
|
/* eslint-disable func-names */
|
||||||
|
/* eslint-disable import/no-extraneous-dependencies */
|
||||||
|
const common = require('./common');
|
||||||
|
const { afterEach, beforeEach, describe, it } = require('mocha');
|
||||||
|
|
||||||
|
describe('Link Device', function() {
|
||||||
|
let app;
|
||||||
|
let app2;
|
||||||
|
this.timeout(60000);
|
||||||
|
this.slow(15000);
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await common.killallElectron();
|
||||||
|
await common.stopStubSnodeServer();
|
||||||
|
|
||||||
|
const app1Props = {
|
||||||
|
mnemonic: common.TEST_MNEMONIC1,
|
||||||
|
displayName: common.TEST_DISPLAY_NAME1,
|
||||||
|
stubSnode: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
const app2Props = {
|
||||||
|
stubSnode: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
[app, app2] = await Promise.all([
|
||||||
|
common.startAndStub(app1Props),
|
||||||
|
common.startAndStubN(app2Props, 2),
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
|
afterEach(async () => {
|
||||||
|
await common.killallElectron();
|
||||||
|
await common.stopStubSnodeServer();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('link two desktop devices', async () => {
|
||||||
|
await common.linkApp2ToApp(app, app2);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('unlink two devices', async () => {
|
||||||
|
await common.linkApp2ToApp(app, app2);
|
||||||
|
await common.timeout(1000);
|
||||||
|
await common.triggerUnlinkApp2FromApp(app, app2);
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,58 @@
|
|||||||
|
/* eslint-disable func-names */
|
||||||
|
/* eslint-disable import/no-extraneous-dependencies */
|
||||||
|
const common = require('./common');
|
||||||
|
const { afterEach, beforeEach, describe, it } = require('mocha');
|
||||||
|
|
||||||
|
|
||||||
|
describe('Message Syncing', function() {
|
||||||
|
let app;
|
||||||
|
let app2;
|
||||||
|
let app3;
|
||||||
|
this.timeout(60000);
|
||||||
|
this.slow(15000);
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
// await common.killallElectron();
|
||||||
|
await common.stopStubSnodeServer();
|
||||||
|
|
||||||
|
const app1Props = {
|
||||||
|
mnemonic: common.TEST_MNEMONIC1,
|
||||||
|
displayName: common.TEST_DISPLAY_NAME1,
|
||||||
|
stubSnode: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
const app2Props = {
|
||||||
|
mnemonic: common.TEST_MNEMONIC2,
|
||||||
|
displayName: common.TEST_DISPLAY_NAME2,
|
||||||
|
stubSnode: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
const app3Props = {
|
||||||
|
mnemonic: common.TEST_MNEMONIC3,
|
||||||
|
displayName: common.TEST_DISPLAY_NAME3,
|
||||||
|
stubSnode: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
[app, app2, app3] = await Promise.all([
|
||||||
|
common.startAndStub(app1Props),
|
||||||
|
common.startAndStubN(app2Props, 2),
|
||||||
|
common.startAndStubN(app3Props, 3),
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
|
||||||
|
afterEach(async () => {
|
||||||
|
await common.killallElectron();
|
||||||
|
await common.stopStubSnodeServer();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('message syncing between linked devices', async () => {
|
||||||
|
await common.linkApp2ToApp(app, app2);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('unlink two devices', async () => {
|
||||||
|
await common.linkApp2ToApp(app, app2);
|
||||||
|
await common.timeout(1000);
|
||||||
|
await common.triggerUnlinkApp2FromApp(app, app2);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
@ -1,45 +0,0 @@
|
|||||||
// /* eslint-disable func-names */
|
|
||||||
// /* eslint-disable import/no-extraneous-dependencies */
|
|
||||||
// const common = require('./common');
|
|
||||||
// const { afterEach, beforeEach, describe, it } = require('mocha');
|
|
||||||
|
|
||||||
|
|
||||||
// describe('Do Vince test', function() {
|
|
||||||
// let app;
|
|
||||||
// let app2;
|
|
||||||
// this.timeout(60000);
|
|
||||||
// this.slow(15000);
|
|
||||||
|
|
||||||
// beforeEach(async () => {
|
|
||||||
// await common.killallElectron();
|
|
||||||
// await common.stopStubSnodeServer();
|
|
||||||
|
|
||||||
// const app1Props = {
|
|
||||||
// mnemonic: common.TEST_MNEMONIC1,
|
|
||||||
// displayName: common.TEST_DISPLAY_NAME1,
|
|
||||||
// stubSnode: true,
|
|
||||||
// };
|
|
||||||
|
|
||||||
// const app2Props = {
|
|
||||||
// mnemonic: common.TEST_MNEMONIC2,
|
|
||||||
// displayName: common.TEST_DISPLAY_NAME2,
|
|
||||||
// stubSnode: true,
|
|
||||||
// };
|
|
||||||
|
|
||||||
// [app, app2] = await Promise.all([
|
|
||||||
// common.startAndStub(app1Props),
|
|
||||||
// common.startAndStub2(app2Props),
|
|
||||||
// ]);
|
|
||||||
// });
|
|
||||||
|
|
||||||
// afterEach(async () => {
|
|
||||||
// await common.stopApp(app);
|
|
||||||
// await common.killallElectron();
|
|
||||||
// await common.stopStubSnodeServer();
|
|
||||||
// });
|
|
||||||
|
|
||||||
// it('Can do first check', async () => {
|
|
||||||
// app = await common.startAndAssureCleanedApp();
|
|
||||||
// return app;
|
|
||||||
// });
|
|
||||||
// });
|
|
Loading…
Reference in New Issue