Don't show the prompt to enable desktop notifications immediately after registration (#8274)

* Fix MatrixClientPeg.userRegisteredWithinLastHours so that it works

* Try fixing end-to-end test + add case for New search beta

* Remove end-to-end test case for Search beta toast as it only shows up after 5 minutes

* Revert to localStorage based solution + non-inverted logic + test including time advancement
This commit is contained in:
Hugh Nimmo-Smith 2022-04-13 19:05:08 +01:00 committed by GitHub
parent d151365fd7
commit 26b771bbf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 74 additions and 14 deletions

View file

@ -21,10 +21,6 @@ export async function toastScenarios(alice: ElementSession, bob: ElementSession)
console.log(" checking and clearing toasts:");
alice.log.startGroup(`clears toasts`);
alice.log.step(`reject desktop notifications toast`);
await rejectToast(alice, "Notifications");
alice.log.done();
alice.log.step(`accepts analytics toast`);
await acceptToast(alice, "Help improve Element");
alice.log.done();
@ -35,10 +31,6 @@ export async function toastScenarios(alice: ElementSession, bob: ElementSession)
alice.log.endGroup();
bob.log.startGroup(`clears toasts`);
bob.log.step(`reject desktop notifications toast`);
await rejectToast(bob, "Notifications");
bob.log.done();
bob.log.step(`reject analytics toast`);
await rejectToast(bob, "Help improve Element");
bob.log.done();