chore: fix existing e2e test for shared vaults to consider limitations (#2393)

* chore: fix existing e2e test for shared vaults to consider limitations

* chore: add paid subscription on the multiple vaults test
This commit is contained in:
Karol Sójko
2023-08-07 16:11:20 +02:00
committed by GitHub
parent b08cff4dc2
commit 695d37beaa
2 changed files with 4 additions and 4 deletions

View File

@@ -424,16 +424,14 @@ describe('asymmetric messages', function () {
})
it('sending a new vault invite to a trusted contact then changing account password should still allow contact to trust invite', async () => {
const { contactContext, contact, deinitContactContext } = await Collaboration.createSharedVaultWithAcceptedInvite(
const { sharedVault, contactContext, contact, deinitContactContext } = await Collaboration.createSharedVaultWithAcceptedInvite(
context,
)
contactContext.lockSyncing()
const newVault = await Collaboration.createSharedVault(context)
await context.vaultInvites.inviteContactToSharedVault(
newVault,
sharedVault,
contact,
SharedVaultUserPermission.PERMISSIONS.Write,
)

View File

@@ -124,6 +124,8 @@ describe('shared vault items', function () {
})
it('adding item to vault while belonging to other vault should move the item to new vault', async () => {
context.activatePaidSubscriptionForUser()
const { note, contactContext, contact, deinitContactContext } =
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)