mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 01:11:25 +00:00
Fix test login
This commit is contained in:
@@ -9,13 +9,13 @@ export async function login(connectionString: string): Promise<Frame> {
|
|||||||
return page.mainFrame();
|
return page.mainFrame();
|
||||||
}
|
}
|
||||||
// log in with connection string
|
// log in with connection string
|
||||||
|
await page.waitFor("div > p.switchConnectTypeText", { visible: true });
|
||||||
|
await page.click("div > p.switchConnectTypeText");
|
||||||
|
const connStr = connectionString;
|
||||||
|
await page.type("input[class='inputToken']", connStr);
|
||||||
|
await page.click("input[value='Connect']");
|
||||||
const handle = await page.waitForSelector("iframe");
|
const handle = await page.waitForSelector("iframe");
|
||||||
const frame = await handle.contentFrame();
|
const frame = await handle.contentFrame();
|
||||||
await frame.waitFor("div > p.switchConnectTypeText", { visible: true });
|
|
||||||
await frame.click("div > p.switchConnectTypeText");
|
|
||||||
const connStr = connectionString;
|
|
||||||
await frame.type("input[class='inputToken']", connStr);
|
|
||||||
await frame.click("input[value='Connect']");
|
|
||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user