|
|
@@ -1230,11 +1230,6 @@ describe('ProjectController', function () {
|
|
|
this.user.alphaProgram = true
|
|
|
})
|
|
|
}
|
|
|
- function tagBeta() {
|
|
|
- beforeEach(function () {
|
|
|
- this.user.betaProgram = true
|
|
|
- })
|
|
|
- }
|
|
|
|
|
|
beforeEach(function () {
|
|
|
this.settings.enablePdfCaching = true
|
|
|
@@ -1252,13 +1247,9 @@ describe('ProjectController', function () {
|
|
|
tagAlpha()
|
|
|
expectToCollectMetricsAndCachePDF()
|
|
|
})
|
|
|
- describe('beta user', function () {
|
|
|
- tagBeta()
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
- })
|
|
|
})
|
|
|
|
|
|
- describe('during beta roll-out', function () {
|
|
|
+ describe('during regular roll-out', function () {
|
|
|
describe('disabled', function () {
|
|
|
showNoVariant()
|
|
|
|
|
|
@@ -1273,17 +1264,13 @@ describe('ProjectController', function () {
|
|
|
tagAlpha()
|
|
|
expectToCollectMetricsAndCachePDF()
|
|
|
})
|
|
|
- describe('beta user', function () {
|
|
|
- tagBeta()
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
- })
|
|
|
})
|
|
|
|
|
|
describe('variant=collect-metrics', function () {
|
|
|
showVariant('collect-metrics')
|
|
|
|
|
|
describe('regular user', function () {
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
+ expectToCollectMetricsOnly()
|
|
|
})
|
|
|
describe('anonymous user', function () {
|
|
|
tagAnonymous()
|
|
|
@@ -1293,17 +1280,13 @@ describe('ProjectController', function () {
|
|
|
tagAlpha()
|
|
|
expectToCollectMetricsAndCachePDF()
|
|
|
})
|
|
|
- describe('beta user', function () {
|
|
|
- tagBeta()
|
|
|
- expectToCollectMetricsOnly()
|
|
|
- })
|
|
|
})
|
|
|
|
|
|
describe('variant=collect-metrics-and-enable-caching', function () {
|
|
|
showVariant('collect-metrics-and-enable-caching')
|
|
|
|
|
|
describe('regular user', function () {
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
+ expectToCollectMetricsAndCachePDF()
|
|
|
})
|
|
|
describe('anonymous user', function () {
|
|
|
tagAnonymous()
|
|
|
@@ -1313,17 +1296,13 @@ describe('ProjectController', function () {
|
|
|
tagAlpha()
|
|
|
expectToCollectMetricsAndCachePDF()
|
|
|
})
|
|
|
- describe('beta user', function () {
|
|
|
- tagBeta()
|
|
|
- expectToCollectMetricsAndCachePDF()
|
|
|
- })
|
|
|
})
|
|
|
|
|
|
describe('variant=enable-caching-only', function () {
|
|
|
showVariant('enable-caching-only')
|
|
|
|
|
|
describe('regular user', function () {
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
+ expectToCachePDFOnly()
|
|
|
})
|
|
|
describe('anonymous user', function () {
|
|
|
tagAnonymous()
|
|
|
@@ -1333,10 +1312,6 @@ describe('ProjectController', function () {
|
|
|
tagAlpha()
|
|
|
expectToCollectMetricsAndCachePDF()
|
|
|
})
|
|
|
- describe('beta user', function () {
|
|
|
- tagBeta()
|
|
|
- expectToCachePDFOnly()
|
|
|
- })
|
|
|
})
|
|
|
})
|
|
|
})
|