Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Add more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Oct 30, 2020
1 parent 008e91e commit 41bd7a0
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/test-e2e/application/application-deploy-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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', () => {
Expand Down

0 comments on commit 41bd7a0

Please sign in to comment.