From 14e53c06ce3b2283149ecc61c2d2eec01828366b Mon Sep 17 00:00:00 2001 From: Richard Cox Date: Thu, 29 Oct 2020 11:26:42 +0000 Subject: [PATCH] Add debig for Application Deploy (problem #1) --- .../application/application-deploy-helper.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/test-e2e/application/application-deploy-helper.ts b/src/test-e2e/application/application-deploy-helper.ts index ab6b5a4057..5f9657702b 100644 --- a/src/test-e2e/application/application-deploy-helper.ts +++ b/src/test-e2e/application/application-deploy-helper.ts @@ -21,9 +21,9 @@ export function createApplicationDeployTests(type = CREATE_APP_DEPLOY_TEST_TYPE. deployedCommit: promise.Promise, appDetails: { cfGuid: string, - appGuid: string + appGuid: string; }, - dockerUrl: string + dockerUrl: string; } { const res = { testApp: e2e.secrets.getDefaultCFEndpoint().testDeployApp || 'nwmac/cf-quick-app', @@ -148,7 +148,11 @@ export function createApplicationDeployTests(type = CREATE_APP_DEPLOY_TEST_TYPE. it('Should pass Source step', () => { e2e.debugLog(`${loggingPrefix} Source Step`); - expect(deployApp.stepper.getActiveStepName()).toBe('Source'); + deployApp.stepper.getActiveStepName().then(activeStep => { + console.warn(`Should pass Source step: activeStep: ${activeStep}`); + expect(activeStep).toBe('Source'); + }); + // expect(deployApp.stepper.getActiveStepName()).toBe('Source'); expect(deployApp.stepper.canNext()).toBeFalsy(); switch (type) { @@ -167,8 +171,12 @@ export function createApplicationDeployTests(type = CREATE_APP_DEPLOY_TEST_TYPE. // Press next to get to source config step - deployApp.stepper.waitUntilCanNext('Next'); - deployApp.stepper.next(); + deployApp.stepper.waitUntilCanNext('Next').then(x => { + console.warn(`Should pass Source step: waitUntilCanNext: ${x}`); + }); + deployApp.stepper.next().then(x => { + console.warn(`Should pass Source step: next: ${x}`); + }); }); it('Should pass Source Config step', () => {