mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-30 15:14:19 +00:00
Initial MCP setup code
This commit is contained in:
32
test/sql/copyjob.seed.spec.ts
Normal file
32
test/sql/copyjob.seed.spec.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { Frame, Locator, Page, test } from '@playwright/test';
|
||||
import { ContainerCopy, getAccountName, TestAccount } from '../fx';
|
||||
import { createMultipleTestContainers } from '../testData';
|
||||
|
||||
test.describe('Copy Job Seed', () => {
|
||||
let page: Page;
|
||||
let wrapper: Locator = null!;
|
||||
let panel: Locator = null!;
|
||||
let frame: Frame = null!;
|
||||
let targetAccountName: string = "";
|
||||
test.beforeAll("Copy Job - Before All", async ({ browser }) => {
|
||||
await createMultipleTestContainers({ accountType: TestAccount.SQLContainerCopyOnly, containerCount: 3 });
|
||||
page = await browser.newPage();
|
||||
({ wrapper, frame } = await ContainerCopy.open(page, TestAccount.SQLContainerCopyOnly));
|
||||
targetAccountName = getAccountName(TestAccount.SQLContainerCopyOnly);
|
||||
});
|
||||
test.afterAll("Copy Job - After All", async () => {
|
||||
await page.unroute(/.*/, (route) => route.continue());
|
||||
await page.close();
|
||||
});
|
||||
test.afterEach("Copy Job - After Each", async () => {
|
||||
await page.unroute(/.*/, (route) => route.continue());
|
||||
});
|
||||
|
||||
test('Successfully create a copy job for offline migration', async ({ page }) => {
|
||||
// generate code here.
|
||||
});
|
||||
|
||||
test('Successfully create a copy job for online migration', async ({ page }) => {
|
||||
// generate code here.
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user