Merge pull request #4332 from overleaf/sk-import-server-pro-acceptance-tests

Migrate server-pro acceptance tests to modules

GitOrigin-RevId: 7caf5719d21bbd7fb30901f3e52225fe4cbc9832
This commit is contained in:
Shane Kilkelly
2021-07-28 02:06:46 +00:00
committed by Copybot
parent d28c1941c2
commit 10deaf5aec
9 changed files with 159 additions and 38 deletions
@@ -18,7 +18,9 @@ module.exports = {
security: {
sessionSecret: 'static-secret-for-tests',
},
adminDomains: ['example.com'],
adminDomains: process.env.ADMIN_DOMAINS
? JSON.parse(process.env.ADMIN_DOMAINS)
: ['example.com'],
statusPageUrl: 'status.example.com',
@@ -20,7 +20,7 @@ describe('Features', function () {
})
describe('with ldap setting', function () {
beforeEach(function () {
this.settings.ldap = true
this.settings.ldap = { enable: true }
})
it('should return true', function () {
expect(this.Features.externalAuthenticationSystemUsed()).to.be.true
@@ -28,7 +28,7 @@ describe('Features', function () {
})
describe('with saml setting', function () {
beforeEach(function () {
this.settings.saml = true
this.settings.saml = { enable: true }
})
it('should return true', function () {
expect(this.Features.externalAuthenticationSystemUsed()).to.be.true