chore: activate paid subscriptions for revisions e2e suites (#2693)
This commit is contained in:
@@ -238,6 +238,12 @@ describe('history manager', () => {
|
|||||||
|
|
||||||
await context.launch()
|
await context.launch()
|
||||||
await context.register()
|
await context.register()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Free user revisions are limited to 1 per day. This is to ensure that
|
||||||
|
* we don't hit that limit during testing.
|
||||||
|
*/
|
||||||
|
await context.activatePaidSubscriptionForUser()
|
||||||
})
|
})
|
||||||
|
|
||||||
afterEach(async function () {
|
afterEach(async function () {
|
||||||
|
|||||||
@@ -17,6 +17,12 @@ describe('shared vault revisions', function () {
|
|||||||
|
|
||||||
await context.launch()
|
await context.launch()
|
||||||
await context.register()
|
await context.register()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Free user revisions are limited to 1 per day. This is to ensure that
|
||||||
|
* we don't hit that limit during testing.
|
||||||
|
*/
|
||||||
|
await context.activatePaidSubscriptionForUser()
|
||||||
})
|
})
|
||||||
|
|
||||||
afterEach(async function () {
|
afterEach(async function () {
|
||||||
@@ -35,6 +41,8 @@ describe('shared vault revisions', function () {
|
|||||||
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
||||||
deinitContactContextFunction = deinitContactContext
|
deinitContactContextFunction = deinitContactContext
|
||||||
|
|
||||||
|
await contactContext.activatePaidSubscriptionForUser()
|
||||||
|
|
||||||
await Factory.sleep(Factory.ServerRevisionFrequency)
|
await Factory.sleep(Factory.ServerRevisionFrequency)
|
||||||
|
|
||||||
await context.changeNoteTitleAndSync(note, 'new title 1')
|
await context.changeNoteTitleAndSync(note, 'new title 1')
|
||||||
@@ -77,6 +85,8 @@ describe('shared vault revisions', function () {
|
|||||||
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
||||||
deinitContactContextFunction = deinitContactContext
|
deinitContactContextFunction = deinitContactContext
|
||||||
|
|
||||||
|
await contactContext.activatePaidSubscriptionForUser()
|
||||||
|
|
||||||
await Factory.sleep(Factory.ServerRevisionFrequency)
|
await Factory.sleep(Factory.ServerRevisionFrequency)
|
||||||
|
|
||||||
const contactNote = contactContext.items.findItem(note.uuid)
|
const contactNote = contactContext.items.findItem(note.uuid)
|
||||||
@@ -103,6 +113,8 @@ describe('shared vault revisions', function () {
|
|||||||
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
||||||
deinitContactContextFunction = deinitContactContext
|
deinitContactContextFunction = deinitContactContext
|
||||||
|
|
||||||
|
await contactContext.activatePaidSubscriptionForUser()
|
||||||
|
|
||||||
await Factory.sleep(Factory.ServerRevisionFrequency)
|
await Factory.sleep(Factory.ServerRevisionFrequency)
|
||||||
await context.changeNoteTitleAndSync(note, 'new title 1')
|
await context.changeNoteTitleAndSync(note, 'new title 1')
|
||||||
|
|
||||||
@@ -135,6 +147,8 @@ describe('shared vault revisions', function () {
|
|||||||
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
||||||
deinitContactContextFunction = deinitContactContext
|
deinitContactContextFunction = deinitContactContext
|
||||||
|
|
||||||
|
await contactContext.activatePaidSubscriptionForUser()
|
||||||
|
|
||||||
await Factory.sleep(Factory.ServerRevisionFrequency)
|
await Factory.sleep(Factory.ServerRevisionFrequency)
|
||||||
|
|
||||||
await context.changeNoteTitleAndSync(note, 'new title 1')
|
await context.changeNoteTitleAndSync(note, 'new title 1')
|
||||||
@@ -164,6 +178,8 @@ describe('shared vault revisions', function () {
|
|||||||
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
await Collaboration.createSharedVaultWithAcceptedInviteAndNote(context)
|
||||||
deinitContactContextFunction = deinitContactContext
|
deinitContactContextFunction = deinitContactContext
|
||||||
|
|
||||||
|
await contactContext.activatePaidSubscriptionForUser()
|
||||||
|
|
||||||
await Factory.sleep(Factory.ServerRevisionFrequency)
|
await Factory.sleep(Factory.ServerRevisionFrequency)
|
||||||
|
|
||||||
await context.changeNoteTitleAndSync(note, 'new title 1')
|
await context.changeNoteTitleAndSync(note, 'new title 1')
|
||||||
|
|||||||
Reference in New Issue
Block a user