mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-11 19:04:35 +01:00
Fix pipeline errors
This commit is contained in:
parent
92b288eee7
commit
0f8c6bd524
@ -61,9 +61,6 @@ export default defineConfig({
|
|||||||
name: "webkit",
|
name: "webkit",
|
||||||
use: {
|
use: {
|
||||||
...devices["Desktop Safari"],
|
...devices["Desktop Safari"],
|
||||||
launchOptions: {
|
|
||||||
args: ["--disable-web-security"],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { AzureCliCredential } from "@azure/identity";
|
import { DefaultAzureCredential } from "@azure/identity";
|
||||||
import { Frame, Locator, Page, expect } from "@playwright/test";
|
import { Frame, Locator, Page, expect } from "@playwright/test";
|
||||||
import crypto from "crypto";
|
import crypto from "crypto";
|
||||||
|
|
||||||
@ -20,8 +20,8 @@ export function generateUniqueName(baseName, options?: TestNameOptions): string
|
|||||||
return `${prefix}${baseName}${crypto.randomBytes(length).toString("hex")}${suffix}`;
|
return `${prefix}${baseName}${crypto.randomBytes(length).toString("hex")}${suffix}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getAzureCLICredentials(): AzureCliCredential {
|
export function getAzureCLICredentials(): DefaultAzureCredential {
|
||||||
return new AzureCliCredential();
|
return new DefaultAzureCredential();
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getAzureCLICredentialsToken(): Promise<string> {
|
export async function getAzureCLICredentialsToken(): Promise<string> {
|
||||||
|
@ -27,6 +27,9 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) {
|
|||||||
await documentsTab.documentsListPane.waitFor();
|
await documentsTab.documentsListPane.waitFor();
|
||||||
await expect(documentsTab.resultsEditor.locator).toBeAttached({ timeout: 60 * 1000 });
|
await expect(documentsTab.resultsEditor.locator).toBeAttached({ timeout: 60 * 1000 });
|
||||||
});
|
});
|
||||||
|
test.afterEach(async ({ page }) => {
|
||||||
|
await page.unrouteAll({ behavior: "ignoreErrors" });
|
||||||
|
});
|
||||||
|
|
||||||
for (const document of documents) {
|
for (const document of documents) {
|
||||||
const { documentId: docId, partitionKeys } = document;
|
const { documentId: docId, partitionKeys } = document;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user