|
@@ -1225,30 +1225,11 @@ describe('ProjectController', function () {
|
|
|
.returns(false)
|
|
.returns(false)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- function tagAlpha() {
|
|
|
|
|
- beforeEach(function () {
|
|
|
|
|
- this.user.alphaProgram = true
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
beforeEach(function () {
|
|
beforeEach(function () {
|
|
|
this.settings.enablePdfCaching = true
|
|
this.settings.enablePdfCaching = true
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- describe('alpha rollout', function () {
|
|
|
|
|
- describe('regular user', function () {
|
|
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
|
|
- })
|
|
|
|
|
- describe('anonymous user', function () {
|
|
|
|
|
- tagAnonymous()
|
|
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
|
|
- })
|
|
|
|
|
- describe('alpha user', function () {
|
|
|
|
|
- tagAlpha()
|
|
|
|
|
- expectToCollectMetricsAndCachePDF()
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
describe('during regular roll-out', function () {
|
|
describe('during regular roll-out', function () {
|
|
|
describe('disabled', function () {
|
|
describe('disabled', function () {
|
|
|
showNoVariant()
|
|
showNoVariant()
|
|
@@ -1258,11 +1239,7 @@ describe('ProjectController', function () {
|
|
|
})
|
|
})
|
|
|
describe('anonymous user', function () {
|
|
describe('anonymous user', function () {
|
|
|
tagAnonymous()
|
|
tagAnonymous()
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
|
|
- })
|
|
|
|
|
- describe('alpha user', function () {
|
|
|
|
|
- tagAlpha()
|
|
|
|
|
- expectToCollectMetricsAndCachePDF()
|
|
|
|
|
|
|
+ expectToCachePDFOnly()
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -1274,11 +1251,7 @@ describe('ProjectController', function () {
|
|
|
})
|
|
})
|
|
|
describe('anonymous user', function () {
|
|
describe('anonymous user', function () {
|
|
|
tagAnonymous()
|
|
tagAnonymous()
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
|
|
- })
|
|
|
|
|
- describe('alpha user', function () {
|
|
|
|
|
- tagAlpha()
|
|
|
|
|
- expectToCollectMetricsAndCachePDF()
|
|
|
|
|
|
|
+ expectToCachePDFOnly()
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -1290,11 +1263,7 @@ describe('ProjectController', function () {
|
|
|
})
|
|
})
|
|
|
describe('anonymous user', function () {
|
|
describe('anonymous user', function () {
|
|
|
tagAnonymous()
|
|
tagAnonymous()
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
|
|
- })
|
|
|
|
|
- describe('alpha user', function () {
|
|
|
|
|
- tagAlpha()
|
|
|
|
|
- expectToCollectMetricsAndCachePDF()
|
|
|
|
|
|
|
+ expectToCachePDFOnly()
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -1306,11 +1275,7 @@ describe('ProjectController', function () {
|
|
|
})
|
|
})
|
|
|
describe('anonymous user', function () {
|
|
describe('anonymous user', function () {
|
|
|
tagAnonymous()
|
|
tagAnonymous()
|
|
|
- expectToNotBeEnrolledAtAll()
|
|
|
|
|
- })
|
|
|
|
|
- describe('alpha user', function () {
|
|
|
|
|
- tagAlpha()
|
|
|
|
|
- expectToCollectMetricsAndCachePDF()
|
|
|
|
|
|
|
+ expectToCachePDFOnly()
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|