Archived
fix context menu test due to new SSMSMin feature (#4693)
This commit is contained in:
@@ -38,7 +38,13 @@ if (context.RunTest) {
|
|||||||
|
|
||||||
let node = nodes[index];
|
let node = nodes[index];
|
||||||
let actions = await azdata.objectexplorer.getNodeActions(node.connectionId, node.nodePath);
|
let actions = await azdata.objectexplorer.getNodeActions(node.connectionId, node.nodePath);
|
||||||
const expectedActions = ['Manage', 'New Query', 'Disconnect', 'Delete Connection', 'Refresh', 'New Notebook', 'Launch Profiler'];
|
let expectedActions;
|
||||||
|
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
expectedActions = ['Manage', 'New Query', 'Disconnect', 'Delete Connection', 'Refresh', 'New Notebook', 'Properties', 'Launch Profiler'];
|
||||||
|
} else {
|
||||||
|
expectedActions = ['Manage', 'New Query', 'Disconnect', 'Delete Connection', 'Refresh', 'New Notebook', 'Launch Profiler'];
|
||||||
|
}
|
||||||
|
|
||||||
const expectedString = expectedActions.join(',');
|
const expectedString = expectedActions.join(',');
|
||||||
const actualString = actions.join(',');
|
const actualString = actions.join(',');
|
||||||
|
|||||||
Reference in New Issue
Block a user