From 464109313bf5eb335a8fe1fe226f1f994c79e7d5 Mon Sep 17 00:00:00 2001 From: Alan Ren Date: Mon, 25 Mar 2019 16:49:12 -0700 Subject: [PATCH] fix context menu test due to new SSMSMin feature (#4693) --- .../integration-tests/src/objectExplorer.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/extensions/integration-tests/src/objectExplorer.test.ts b/extensions/integration-tests/src/objectExplorer.test.ts index dbae687e6e..60b688d40b 100644 --- a/extensions/integration-tests/src/objectExplorer.test.ts +++ b/extensions/integration-tests/src/objectExplorer.test.ts @@ -38,7 +38,13 @@ if (context.RunTest) { let node = nodes[index]; 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 actualString = actions.join(','); @@ -46,7 +52,7 @@ if (context.RunTest) { }); }); } -async function VerifyOeNode(server: TestServerProfile, timeout: number,expectedNodeLable: string[]) { +async function VerifyOeNode(server: TestServerProfile, timeout: number, expectedNodeLable: string[]) { await connectToServer(server, timeout); let nodes = await azdata.objectexplorer.getActiveConnectionNodes(); assert(nodes.length > 0, `Expecting at least one active connection, actual: ${nodes.length}`);