Spam Reporting UI changes
This commit is contained in:
parent
e031d136a1
commit
8387f938eb
88 changed files with 2711 additions and 807 deletions
|
@ -23,6 +23,7 @@ import {
|
|||
RECEIPT_BATCHER_WAIT_MS,
|
||||
} from '../../types/Receipt';
|
||||
import { sleep } from '../../util/sleep';
|
||||
import { expectSystemMessages } from '../helpers';
|
||||
|
||||
export const debug = createDebug('mock:test:pni-signature');
|
||||
|
||||
|
@ -235,9 +236,7 @@ describe('pnp/PNI Signature', function (this: Mocha.Suite) {
|
|||
const messages = window.locator('.module-message__text');
|
||||
assert.strictEqual(await messages.count(), 4, 'message count');
|
||||
|
||||
// No notifications
|
||||
const notifications = window.locator('.SystemMessage');
|
||||
assert.strictEqual(await notifications.count(), 0, 'notification count');
|
||||
await expectSystemMessages(window, ['You accepted the message request']);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -424,11 +423,10 @@ describe('pnp/PNI Signature', function (this: Mocha.Suite) {
|
|||
assert.strictEqual(await messages.count(), 3, 'messages');
|
||||
|
||||
// Title transition notification
|
||||
const notifications = window.locator('.SystemMessage');
|
||||
assert.strictEqual(await notifications.count(), 1, 'notifications');
|
||||
|
||||
const first = await notifications.first();
|
||||
assert.match(await first.innerText(), /You started this chat with/);
|
||||
await expectSystemMessages(window, [
|
||||
'You accepted the message request',
|
||||
/You started this chat with/,
|
||||
]);
|
||||
|
||||
assert.isEmpty(await phone.getOrphanedStorageKeys());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue