mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 01:25:37 -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:
@@ -40,38 +40,36 @@ describe('Configure Python Wizard', function () {
|
||||
viewContext = createViewContext();
|
||||
});
|
||||
|
||||
// These wizard tests are disabled due to errors with disposable objects
|
||||
//
|
||||
// it('Start wizard test', async () => {
|
||||
// let wizard = new ConfigurePythonWizard(testInstallation);
|
||||
// await wizard.start();
|
||||
// await wizard.close();
|
||||
// await should(wizard.setupComplete).be.resolved();
|
||||
// });
|
||||
it('Start wizard test', async () => {
|
||||
let wizard = new ConfigurePythonWizard(testInstallation);
|
||||
await wizard.start();
|
||||
await wizard.close();
|
||||
await should(wizard.setupComplete).be.resolved();
|
||||
});
|
||||
|
||||
// it('Reject setup on cancel test', async () => {
|
||||
// let wizard = new ConfigurePythonWizard(testInstallation);
|
||||
// await wizard.start(undefined, true);
|
||||
// await wizard.close();
|
||||
// await should(wizard.setupComplete).be.rejected();
|
||||
// });
|
||||
it('Reject setup on cancel test', async () => {
|
||||
let wizard = new ConfigurePythonWizard(testInstallation);
|
||||
await wizard.start(undefined, true);
|
||||
await wizard.close();
|
||||
await should(wizard.setupComplete).be.rejected();
|
||||
});
|
||||
|
||||
// it('Error message test', async () => {
|
||||
// let wizard = new ConfigurePythonWizard(testInstallation);
|
||||
// await wizard.start();
|
||||
it('Error message test', async () => {
|
||||
let wizard = new ConfigurePythonWizard(testInstallation);
|
||||
await wizard.start();
|
||||
|
||||
// should(wizard.wizard.message).be.undefined();
|
||||
should(wizard.wizard.message).be.undefined();
|
||||
|
||||
// let testMsg = 'Test message';
|
||||
// wizard.showErrorMessage(testMsg);
|
||||
// should(wizard.wizard.message.text).be.equal(testMsg);
|
||||
// should(wizard.wizard.message.level).be.equal(azdata.window.MessageLevel.Error);
|
||||
let testMsg = 'Test message';
|
||||
wizard.showErrorMessage(testMsg);
|
||||
should(wizard.wizard.message.text).be.equal(testMsg);
|
||||
should(wizard.wizard.message.level).be.equal(azdata.window.MessageLevel.Error);
|
||||
|
||||
// wizard.clearStatusMessage();
|
||||
// should(wizard.wizard.message).be.undefined();
|
||||
wizard.clearStatusMessage();
|
||||
should(wizard.wizard.message).be.undefined();
|
||||
|
||||
// await wizard.close();
|
||||
// });
|
||||
await wizard.close();
|
||||
});
|
||||
|
||||
it('Configure Path Page test', async () => {
|
||||
let testPythonLocation = '/not/a/real/path';
|
||||
|
||||
Reference in New Issue
Block a user