Skip to content

Commit

Permalink
test: update prompt wait text
Browse files Browse the repository at this point in the history
  • Loading branch information
jhockett committed Nov 12, 2021
1 parent e440bc9 commit ad4cd4e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/amplify-e2e-core/src/categories/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?')
Expand Down Expand Up @@ -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?')
Expand All @@ -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?')
Expand Down Expand Up @@ -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')
Expand Down Expand Up @@ -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?')
Expand Down Expand Up @@ -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?')
Expand Down Expand Up @@ -1622,7 +1622,7 @@ export function updateAuthWithoutTrigger(cwd: string, settings: any): Promise<vo
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?')
Expand Down

0 comments on commit ad4cd4e

Please sign in to comment.