Skip to content

Commit

Permalink
chore: fix existing e2e test for shared vaults to consider limitations (
Browse files Browse the repository at this point in the history
#2393)

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

* chore: add paid subscription on the multiple vaults test
  • Loading branch information
karolsojko committed Aug 7, 2023
1 parent b08cff4 commit 695d37b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/snjs/mocha/vaults/asymmetric-messages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
2 changes: 2 additions & 0 deletions packages/snjs/mocha/vaults/items.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 695d37b

Please sign in to comment.