From a860686c54341a35642e2493ebc36152504f542a Mon Sep 17 00:00:00 2001 From: Christopher Sundersingh Date: Thu, 28 Oct 2021 22:27:48 -0700 Subject: [PATCH] fix(test): windows test fix --- packages/amplify-e2e-core/src/categories/api.ts | 4 +--- packages/amplify-e2e-core/src/init/amplifyPush.ts | 2 +- packages/amplify-e2e-tests/src/__tests__/api_5.test.ts | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/amplify-e2e-core/src/categories/api.ts b/packages/amplify-e2e-core/src/categories/api.ts index 7b0df2bd681..a6dc880de83 100644 --- a/packages/amplify-e2e-core/src/categories/api.ts +++ b/packages/amplify-e2e-core/src/categories/api.ts @@ -188,9 +188,7 @@ export function addApiWithAllAuthModesV2(cwd: string, opts: Partial { if (!err) { resolve(); diff --git a/packages/amplify-e2e-core/src/init/amplifyPush.ts b/packages/amplify-e2e-core/src/init/amplifyPush.ts index c6be12e0290..0639e0bb7cf 100644 --- a/packages/amplify-e2e-core/src/init/amplifyPush.ts +++ b/packages/amplify-e2e-core/src/init/amplifyPush.ts @@ -57,7 +57,7 @@ export function amplifyPushGraphQlWithCognitoPrompt(cwd: string, testingWithLate .wait(/.*Do you want to configure advanced settings.*/) .sendCarriageReturn() .wait('Do you want to generate code for your newly created GraphQL API') - .sendLine('n') + .sendConfirmNo() .wait(/.*/) .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts b/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts index 34bb9651dbf..e190158ae02 100644 --- a/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/api_5.test.ts @@ -17,8 +17,6 @@ import { listRolePolicies, updateApiSchema, updateAuthAddAdminQueries, - addApiWithAllAuthModesV2, - amplifyPush, } from 'amplify-e2e-core'; import { readdirSync, readFileSync, writeFileSync } from 'fs'; import * as path from 'path';