Skip to content

Commit

Permalink
Add debig for Application Deploy (problem #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Oct 29, 2020
1 parent 12ce1d3 commit 14e53c0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/test-e2e/application/application-deploy-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export function createApplicationDeployTests(type = CREATE_APP_DEPLOY_TEST_TYPE.
deployedCommit: promise.Promise<string>,
appDetails: {
cfGuid: string,
appGuid: string
appGuid: string;
},
dockerUrl: string
dockerUrl: string;
} {
const res = {
testApp: e2e.secrets.getDefaultCFEndpoint().testDeployApp || 'nwmac/cf-quick-app',
Expand Down Expand Up @@ -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) {
Expand All @@ -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', () => {
Expand Down

0 comments on commit 14e53c0

Please sign in to comment.