mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Re-enable previously commented out configure python wizard tests (#11945)
* Re-enable configure python wizard tests * Remove extra comment
This commit is contained in:
@@ -122,7 +122,7 @@ export class ConfigurePythonWizard {
|
|||||||
|
|
||||||
this._wizard.generateScriptButton.hidden = true;
|
this._wizard.generateScriptButton.hidden = true;
|
||||||
this._wizard.pages = [page0, page1];
|
this._wizard.pages = [page0, page1];
|
||||||
this._wizard.open();
|
await this._wizard.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
public async close(): Promise<void> {
|
public async close(): Promise<void> {
|
||||||
|
|||||||
@@ -40,38 +40,36 @@ describe('Configure Python Wizard', function () {
|
|||||||
viewContext = createViewContext();
|
viewContext = createViewContext();
|
||||||
});
|
});
|
||||||
|
|
||||||
// These wizard tests are disabled due to errors with disposable objects
|
it('Start wizard test', async () => {
|
||||||
//
|
let wizard = new ConfigurePythonWizard(testInstallation);
|
||||||
// it('Start wizard test', async () => {
|
await wizard.start();
|
||||||
// let wizard = new ConfigurePythonWizard(testInstallation);
|
await wizard.close();
|
||||||
// await wizard.start();
|
await should(wizard.setupComplete).be.resolved();
|
||||||
// await wizard.close();
|
});
|
||||||
// await should(wizard.setupComplete).be.resolved();
|
|
||||||
// });
|
|
||||||
|
|
||||||
// it('Reject setup on cancel test', async () => {
|
it('Reject setup on cancel test', async () => {
|
||||||
// let wizard = new ConfigurePythonWizard(testInstallation);
|
let wizard = new ConfigurePythonWizard(testInstallation);
|
||||||
// await wizard.start(undefined, true);
|
await wizard.start(undefined, true);
|
||||||
// await wizard.close();
|
await wizard.close();
|
||||||
// await should(wizard.setupComplete).be.rejected();
|
await should(wizard.setupComplete).be.rejected();
|
||||||
// });
|
});
|
||||||
|
|
||||||
// it('Error message test', async () => {
|
it('Error message test', async () => {
|
||||||
// let wizard = new ConfigurePythonWizard(testInstallation);
|
let wizard = new ConfigurePythonWizard(testInstallation);
|
||||||
// await wizard.start();
|
await wizard.start();
|
||||||
|
|
||||||
// should(wizard.wizard.message).be.undefined();
|
should(wizard.wizard.message).be.undefined();
|
||||||
|
|
||||||
// let testMsg = 'Test message';
|
let testMsg = 'Test message';
|
||||||
// wizard.showErrorMessage(testMsg);
|
wizard.showErrorMessage(testMsg);
|
||||||
// should(wizard.wizard.message.text).be.equal(testMsg);
|
should(wizard.wizard.message.text).be.equal(testMsg);
|
||||||
// should(wizard.wizard.message.level).be.equal(azdata.window.MessageLevel.Error);
|
should(wizard.wizard.message.level).be.equal(azdata.window.MessageLevel.Error);
|
||||||
|
|
||||||
// wizard.clearStatusMessage();
|
wizard.clearStatusMessage();
|
||||||
// should(wizard.wizard.message).be.undefined();
|
should(wizard.wizard.message).be.undefined();
|
||||||
|
|
||||||
// await wizard.close();
|
await wizard.close();
|
||||||
// });
|
});
|
||||||
|
|
||||||
it('Configure Path Page test', async () => {
|
it('Configure Path Page test', async () => {
|
||||||
let testPythonLocation = '/not/a/real/path';
|
let testPythonLocation = '/not/a/real/path';
|
||||||
|
|||||||
@@ -44,7 +44,9 @@ export abstract class ViewBase extends AngularDisposable implements IModelView {
|
|||||||
this.rootDescriptor = descriptor;
|
this.rootDescriptor = descriptor;
|
||||||
this.modelStore.registerValidationCallback(validationCallback);
|
this.modelStore.registerValidationCallback(validationCallback);
|
||||||
// Kick off the build by detecting changes to the model
|
// Kick off the build by detecting changes to the model
|
||||||
this.changeRef.detectChanges();
|
if (!(this.changeRef['destroyed'])) {
|
||||||
|
this.changeRef.detectChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private defineComponent(component: IComponentShape): IComponentDescriptor {
|
private defineComponent(component: IComponentShape): IComponentDescriptor {
|
||||||
|
|||||||
Reference in New Issue
Block a user