test(docs-infra): enable accidentally disabled preview server tests (#36837)
Previously, some preview server tests were only running for public builds. In the past, these tests were run for both public and non-public builds. The non-public builds tests were disabled in #23576, probably during debugging some failure. This commit fixes it by ensuring the tests are run for both public and non-public builds. PR Close #36837
This commit is contained in:
parent
0a695e181e
commit
b3cf5b246f
|
@ -199,7 +199,7 @@ describe('preview-server', () => {
|
||||||
expect({ prNum: PrNums.TRUST_CHECK_UNTRUSTED, isPublic: false }).toExistAsABuild();
|
expect({ prNum: PrNums.TRUST_CHECK_UNTRUSTED, isPublic: false }).toExistAsABuild();
|
||||||
});
|
});
|
||||||
|
|
||||||
[true].forEach(isPublic => {
|
[true, false].forEach(isPublic => {
|
||||||
const build = isPublic ? BuildNums.TRUST_CHECK_ACTIVE_TRUSTED_USER : BuildNums.TRUST_CHECK_UNTRUSTED;
|
const build = isPublic ? BuildNums.TRUST_CHECK_ACTIVE_TRUSTED_USER : BuildNums.TRUST_CHECK_UNTRUSTED;
|
||||||
const prNum = isPublic ? PrNums.TRUST_CHECK_ACTIVE_TRUSTED_USER : PrNums.TRUST_CHECK_UNTRUSTED;
|
const prNum = isPublic ? PrNums.TRUST_CHECK_ACTIVE_TRUSTED_USER : PrNums.TRUST_CHECK_UNTRUSTED;
|
||||||
const label = isPublic ? 'public' : 'non-public';
|
const label = isPublic ? 'public' : 'non-public';
|
||||||
|
|
Loading…
Reference in New Issue