diff --git a/packages/amplify-e2e-core/src/categories/auth.ts b/packages/amplify-e2e-core/src/categories/auth.ts index 8b5e3d32b63..72b49728f1c 100644 --- a/packages/amplify-e2e-core/src/categories/auth.ts +++ b/packages/amplify-e2e-core/src/categories/auth.ts @@ -350,7 +350,7 @@ export function updateAuthSignInSignOutUrl(cwd: string, settings: any): Promise< return new Promise((resolve, reject) => { const chain = spawn(getCLIPath(testingWithLatestCodebase), ['update', 'auth'], { cwd, stripColors: true }); if (settings?.overrides?.category === 'auth') { - chain.wait(`Do you want to migrate auth resource "${settings.overrides.resourceName}" to support overrides?`).sendConfirmYes(); + chain.wait('A migration is needed to support latest updates on auth resources').sendConfirmYes(); } chain .wait('What do you want to do?') @@ -389,7 +389,7 @@ export function updateAuthToRemoveFederation(cwd: string, settings: any): Promis return new Promise((resolve, reject) => { const chain = spawn(getCLIPath(testingWithLatestCodebase), ['update', 'auth'], { cwd, stripColors: true }); if (settings?.overrides?.category === 'auth') { - chain.wait(`Do you want to migrate auth resource "${settings.overrides.resourceName}" to support overrides?`).sendConfirmYes(); + chain.wait('A migration is needed to support latest updates on auth resources').sendConfirmYes(); } chain .wait('What do you want to do?') @@ -411,7 +411,7 @@ export function updateAuthWithoutCustomTrigger(cwd: string, settings: any): Prom return new Promise((resolve, reject) => { const chain = spawn(getCLIPath(testingWithLatestCodebase), ['update', 'auth'], { cwd, stripColors: true }); if (settings?.overrides?.category === 'auth') { - chain.wait(`Do you want to migrate auth resource "${settings.overrides.resourceName}" to support overrides?`).sendConfirmYes(); + chain.wait('A migration is needed to support latest updates on auth resources').sendConfirmYes(); } chain .wait('What do you want to do?') @@ -507,7 +507,7 @@ export function updateAuthRemoveRecaptchaTrigger(cwd: string, settings: any): Pr return new Promise((resolve, reject) => { const chain = spawn(getCLIPath(testingWithLatestCodebase), ['update', 'auth'], { cwd, stripColors: true }); if (settings?.overrides?.category === 'auth') { - chain.wait(`Do you want to migrate auth resource "${settings.overrides.resourceName}" to support overrides?`).sendConfirmYes(); + chain.wait('A migration is needed to support latest updates on auth resources').sendConfirmYes(); } chain .wait('What do you want to do') @@ -1269,7 +1269,7 @@ export function updateAuthAddUserGroups(projectDir: string, groupNames: string[] return new Promise((resolve, reject) => { const chain = spawn(getCLIPath(testingWithLatestCodebase), ['update', 'auth'], { cwd: projectDir, stripColors: true }); if (settings?.overrides?.category === 'auth') { - chain.wait(`Do you want to migrate auth resource "${settings.overrides.resourceName}" to support overrides?`).sendConfirmYes(); + chain.wait('A migration is needed to support latest updates on auth resources').sendConfirmYes(); } chain .wait('What do you want to do?') @@ -1590,7 +1590,7 @@ export function updateAuthAddAdminQueries(projectDir: string, groupName: string return new Promise((resolve, reject) => { const chain = spawn(getCLIPath(testingWithLatestCodebase), ['update', 'auth'], { cwd: projectDir, stripColors: true }); if (settings?.overrides?.category === 'auth') { - chain.wait(`Do you want to migrate auth resource "${settings.overrides.resourceName}" to support overrides?`).sendConfirmYes(); + chain.wait('A migration is needed to support latest updates on auth resources').sendConfirmYes(); } chain .wait('What do you want to do?') @@ -1622,7 +1622,7 @@ export function updateAuthWithoutTrigger(cwd: string, settings: any): Promise { const chain = spawn(getCLIPath(testingWithLatestCodebase), ['update', 'auth'], { cwd, stripColors: true }); if (settings?.overrides?.category === 'auth') { - chain.wait(`Do you want to migrate auth resource "${settings.overrides.resourceName}" to support overrides?`).sendConfirmYes(); + chain.wait('A migration is needed to support latest updates on auth resources').sendConfirmYes(); } chain .wait('What do you want to do?')