mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix OE tests (#6873)
This commit is contained in:
@@ -65,7 +65,7 @@ class ObjectExplorerTester {
|
|||||||
@stressify({ dop: ObjectExplorerTester.ParallelCount })
|
@stressify({ dop: ObjectExplorerTester.ParallelCount })
|
||||||
async sqlDbContextMenuTest(): Promise<void> {
|
async sqlDbContextMenuTest(): Promise<void> {
|
||||||
const server = await getAzureServer();
|
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);
|
await this.verifyContextMenu(server, expectedActions);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,10 +75,10 @@ class ObjectExplorerTester {
|
|||||||
let expectedActions: string[] = [];
|
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
|
// 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') {
|
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 {
|
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);
|
await this.verifyDBContextMenu(server, 3000, expectedActions);
|
||||||
}
|
}
|
||||||
@@ -89,10 +89,10 @@ class ObjectExplorerTester {
|
|||||||
let expectedActions: string[];
|
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
|
// 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') {
|
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 {
|
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);
|
await this.verifyContextMenu(server, expectedActions);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user