Migrate schema to service ids
This commit is contained in:
parent
71958f8a01
commit
8b0da36caa
258 changed files with 4795 additions and 2613 deletions
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { UUIDKind } from '@signalapp/mock-server';
|
||||
import { ServiceIdKind } from '@signalapp/mock-server';
|
||||
import createDebug from 'debug';
|
||||
|
||||
import * as durations from '../../util/durations';
|
||||
|
@ -39,18 +39,18 @@ describe('pnp/change number', function needsName() {
|
|||
|
||||
debug('prepare a message for original PNI');
|
||||
const messageBefore = await first.encryptText(desktop, 'Before', {
|
||||
uuidKind: UUIDKind.PNI,
|
||||
serviceIdKind: ServiceIdKind.PNI,
|
||||
});
|
||||
|
||||
debug('preparing change number');
|
||||
const changeNumber = await phone.prepareChangeNumber();
|
||||
|
||||
const newKey = await desktop.popSingleUseKey(UUIDKind.PNI);
|
||||
await first.addSingleUseKey(desktop, newKey, UUIDKind.PNI);
|
||||
const newKey = await desktop.popSingleUseKey(ServiceIdKind.PNI);
|
||||
await first.addSingleUseKey(desktop, newKey, ServiceIdKind.PNI);
|
||||
|
||||
debug('prepare a message for updated PNI');
|
||||
const messageAfter = await first.encryptText(desktop, 'After', {
|
||||
uuidKind: UUIDKind.PNI,
|
||||
serviceIdKind: ServiceIdKind.PNI,
|
||||
});
|
||||
|
||||
debug('sending all messages');
|
||||
|
@ -61,7 +61,7 @@ describe('pnp/change number', function needsName() {
|
|||
]);
|
||||
|
||||
debug('opening conversation with the first contact');
|
||||
await leftPane.locator(`[data-testid="${first.toContact().uuid}"]`).click();
|
||||
await leftPane.locator(`[data-testid="${first.toContact().aci}"]`).click();
|
||||
|
||||
debug('done');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue