Remove spurious notification messages from test
This commit is contained in:
parent
cf24eec576
commit
ee55014049
1 changed files with 3 additions and 21 deletions
|
@ -48,21 +48,16 @@ describe('pnp/PNI Signature', function needsName() {
|
||||||
state = state.addContact(
|
state = state.addContact(
|
||||||
pniContact,
|
pniContact,
|
||||||
{
|
{
|
||||||
identityState: Proto.ContactRecord.IdentityState.VERIFIED,
|
|
||||||
whitelisted: true,
|
whitelisted: true,
|
||||||
|
|
||||||
identityKey: pniContact.getPublicKey(UUIDKind.PNI).serialize(),
|
|
||||||
|
|
||||||
serviceE164: pniContact.device.number,
|
serviceE164: pniContact.device.number,
|
||||||
|
identityKey: pniContact.getPublicKey(UUIDKind.PNI).serialize(),
|
||||||
givenName: 'PNI Contact',
|
givenName: 'PNI Contact',
|
||||||
},
|
},
|
||||||
UUIDKind.PNI
|
UUIDKind.PNI
|
||||||
);
|
);
|
||||||
|
|
||||||
state = state.addContact(pniContact, {
|
state = state.addContact(pniContact, {
|
||||||
identityState: Proto.ContactRecord.IdentityState.VERIFIED,
|
|
||||||
whitelisted: true,
|
whitelisted: true,
|
||||||
|
|
||||||
serviceE164: undefined,
|
serviceE164: undefined,
|
||||||
identityKey: pniContact.publicKey.serialize(),
|
identityKey: pniContact.publicKey.serialize(),
|
||||||
profileKey: pniContact.profileKey.serialize(),
|
profileKey: pniContact.profileKey.serialize(),
|
||||||
|
@ -360,22 +355,9 @@ describe('pnp/PNI Signature', function needsName() {
|
||||||
const messages = window.locator('.module-message__text');
|
const messages = window.locator('.module-message__text');
|
||||||
assert.strictEqual(await messages.count(), 3, 'messages');
|
assert.strictEqual(await messages.count(), 3, 'messages');
|
||||||
|
|
||||||
// Two 'verify contact' and nothing else
|
// No notifications
|
||||||
const notifications = window.locator('.SystemMessage');
|
const notifications = window.locator('.SystemMessage');
|
||||||
assert.strictEqual(await notifications.count(), 2, 'notifications');
|
assert.strictEqual(await notifications.count(), 0, 'notifications');
|
||||||
|
|
||||||
// TODO: DESKTOP-4663
|
|
||||||
const first = await notifications.first();
|
|
||||||
assert.match(
|
|
||||||
await first.innerText(),
|
|
||||||
/You marked your Safety Number with Unknown contact as verified from another device/
|
|
||||||
);
|
|
||||||
|
|
||||||
const second = await notifications.nth(1);
|
|
||||||
assert.match(
|
|
||||||
await second.innerText(),
|
|
||||||
/You marked your Safety Number with ACI Contact as verified from another device/
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue