Fix OE tests (#6873)

This commit is contained in:
Charles Gagnon
2019-08-22 08:06:31 -07:00
committed by GitHub
parent a8d831d32e
commit 09552c5f15

View File

@@ -65,7 +65,7 @@ class ObjectExplorerTester {
@stressify({ dop: ObjectExplorerTester.ParallelCount })
async sqlDbContextMenuTest(): Promise<void> {
const server = await getAzureServer();
const expectedActions = ['Manage', 'New Query', 'New Notebook', 'Disconnect', 'Delete Connection', 'Refresh', 'Data-tier Application wizard', 'Launch Profiler'];
const expectedActions = ['New Notebook', 'Disconnect', 'Delete Connection', 'Refresh', 'New Query', 'Manage', 'Data-tier Application wizard', 'Launch Profiler'];
await this.verifyContextMenu(server, expectedActions);
}
@@ -75,10 +75,10 @@ class ObjectExplorerTester {
let expectedActions: string[] = [];
// Generate Scripts and Properties come from the admin-tool-ext-win extension which is for Windows only, so the item won't show up on non-Win32 platforms
if (process.platform === 'win32') {
expectedActions = ['Manage', 'New Query', 'New Notebook', 'Backup', 'Restore', 'Refresh', 'Data-tier Application wizard', 'Schema Compare', 'Import wizard', 'Generate Scripts...', 'Properties'];
expectedActions = ['New Notebook', 'Backup', 'Restore', 'Refresh', 'New Query', 'Manage', 'Data-tier Application wizard', 'Schema Compare', 'Import wizard', 'Generate Scripts...', 'Properties'];
}
else {
expectedActions = ['Manage', 'New Query', 'New Notebook', 'Backup', 'Restore', 'Refresh', 'Data-tier Application wizard', 'Schema Compare', 'Import wizard'];
expectedActions = ['New Notebook', 'Backup', 'Restore', 'Refresh', 'New Query', 'Manage', 'Data-tier Application wizard', 'Schema Compare', 'Import wizard'];
}
await this.verifyDBContextMenu(server, 3000, expectedActions);
}
@@ -89,10 +89,10 @@ class ObjectExplorerTester {
let expectedActions: string[];
// Properties comes from the admin-tool-ext-win extension which is for Windows only, so the item won't show up on non-Win32 platforms
if (process.platform === 'win32') {
expectedActions = ['Manage', 'New Query', 'New Notebook', 'Disconnect', 'Delete Connection', 'Refresh', 'Data-tier Application wizard', 'Launch Profiler', 'Properties'];
expectedActions = ['New Notebook', 'Disconnect', 'Delete Connection', 'Refresh', 'New Query', 'Manage', 'Data-tier Application wizard', 'Launch Profiler', 'Properties'];
}
else {
expectedActions = ['Manage', 'New Query', 'New Notebook', 'Disconnect', 'Delete Connection', 'Refresh', 'Data-tier Application wizard', 'Launch Profiler'];
expectedActions = ['New Notebook', 'Disconnect', 'Delete Connection', 'Refresh', 'New Query', 'Manage', 'Data-tier Application wizard', 'Launch Profiler'];
}
await this.verifyContextMenu(server, expectedActions);
}