From 41bd7a0042a0293a17db68559b15d3becec58446 Mon Sep 17 00:00:00 2001 From: Richard Cox Date: Fri, 30 Oct 2020 09:37:44 +0000 Subject: [PATCH] Add more debugging --- .../application/application-deploy-helper.ts | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/test-e2e/application/application-deploy-helper.ts b/src/test-e2e/application/application-deploy-helper.ts index 6333d20bfe..2698f500dc 100644 --- a/src/test-e2e/application/application-deploy-helper.ts +++ b/src/test-e2e/application/application-deploy-helper.ts @@ -148,16 +148,27 @@ export function createApplicationDeployTests(type = CREATE_APP_DEPLOY_TEST_TYPE. it('Should pass Source step', () => { e2e.debugLog(`${loggingPrefix} Source Step`); + e2e.log('Should pass Source step: 1'); deployApp.stepper.waitUntilShown(); + e2e.log('Should pass Source step: 2'); deployApp.stepper.waitForStepNotBusy(); + e2e.log('Should pass Source step: 3'); deployApp.stepper.getActiveStepName().then(activeStep => { console.warn(`Should pass Source step: activeStep: ${activeStep}`); expect(activeStep).toBe('Source'); }); + e2e.log('Should pass Source step: 4'); // expect(deployApp.stepper.getActiveStepName()).toBe('Source'); - expect(deployApp.stepper.canNext()).toBeFalsy(); + // expect(deployApp.stepper.canNext()).toBeFalsy(); + deployApp.stepper.canNext().then(canNext => { + console.warn(`Should pass Source step: canNext: ${canNext}`); + expect(canNext).toBeFalsy(); + }); + e2e.log('Should pass Source step: 5'); browser.waitForAngularEnabled(false); + + e2e.log('Should pass Source step: 6'); switch (type) { case CREATE_APP_DEPLOY_TEST_TYPE.GIT_CLONE: deployApp.stepper.getStepperForm().fill({ projectname: res.testApp }); @@ -171,15 +182,25 @@ export function createApplicationDeployTests(type = CREATE_APP_DEPLOY_TEST_TYPE. deployApp.stepper.getStepperForm().fill({ dockerimg: res.dockerUrl }); break; } - browser.waitForAngularEnabled(true); + + e2e.log('Should pass Source step: 7'); // Press next to get to source config step deployApp.stepper.waitUntilCanNext('Next').then(x => { console.warn(`Should pass Source step: waitUntilCanNext: ${x}`); }); + + e2e.log('Should pass Source step: 8'); + deployApp.stepper.next().then(x => { console.warn(`Should pass Source step: next: ${x}`); }); + + e2e.log('Should pass Source step: 9'); + + browser.waitForAngularEnabled(true); + + e2e.log('Should pass Source step: 10'); }); it('Should pass Source Config step', () => {