diff --git a/test/keywordPreservation.test.ts b/test/keywordPreservation.test.ts index f79befb1f..371470a14 100644 --- a/test/keywordPreservation.test.ts +++ b/test/keywordPreservation.test.ts @@ -504,6 +504,12 @@ describe('preserveKeywords', () => { provider: 'twilio', }, ], + pages: [ + { + name: 'error_page', + url: '##URL##/error', + }, + ], }; const mockRemoteAssets = { @@ -515,7 +521,6 @@ describe('preserveKeywords', () => { universal_login_enabled: true, customText: {}, }, - pages: undefined, //TODO: test these cases more thoroughly rules: null, //TODO: test these cases more thoroughly connections: [], // Empty on remote but has local assets actions: [ @@ -557,6 +562,12 @@ describe('preserveKeywords', () => { provider: 'twilio', }, ], + pages: [ + { + name: 'error_page', + url: 'https://travel0.com/error', + }, + ], }; const auth0Handlers = [ @@ -581,7 +592,8 @@ describe('preserveKeywords', () => { type: 'resourceServers', }, { id: 'id', identifiers: ['id', 'domain'], type: 'customDomains' }, - { id: 'id', identifiers: ['name'], type: 'guardianFactorProviders' }, + { id: 'name', identifiers: ['id', 'name'], type: 'guardianFactorProviders' }, + { id: 'id', identifiers: ['name'], type: 'pages' }, ]; it('should preserve keywords when they correlate to keyword mappings', () => { @@ -590,6 +602,7 @@ describe('preserveKeywords', () => { remoteAssets: mockRemoteAssets, keywordMappings: { COMPANY_NAME: 'Travel0', + URL: 'https://trave0.com', ALLOWED_LOGOUT_URLS: ['localhost:3000/logout', 'https://travel0.com/logout'], ENV: 'Production', API_MAIN_IDENTIFIER: 'https://travel0.com/api/v1', @@ -617,6 +630,7 @@ describe('preserveKeywords', () => { expected.guardianFactorProviders[0].messaging_service_sid = '##TWILIO_SID##'; expected.guardianFactorProviders[0].auth_token = '##AUTH_TOKEN##'; expected.guardianFactorProviders[0].from = '##COMPANY_NAME##'; + expected.pages[0].url = '##URL##/error'; return expected; })() );