diff --git a/packages/integration-tests/src/tests/api/application/application.secrets.test.ts b/packages/integration-tests/src/tests/api/application/application.secrets.test.ts index 3f4634271e9..301e73139e9 100644 --- a/packages/integration-tests/src/tests/api/application/application.secrets.test.ts +++ b/packages/integration-tests/src/tests/api/application/application.secrets.test.ts @@ -30,18 +30,17 @@ describe('application secrets', () => { it.each(Object.values(ApplicationType))( 'should or not to create application secret for %s applications per type', async (type) => { - const application = await createApplication( - 'application', - type, - cond( + const application = await createApplication('application', type, { + ...cond( type === ApplicationType.Protected && { protectedAppMetadata: { origin: 'https://example.com', subDomain: randomString(), }, } - ) - ); + ), + ...cond(type === ApplicationType.SAML && { isThirdParty: true }), + }); expect(application.secret).toMatch(new RegExp(`^${internalPrefix}`)); // Check the default secret