Fix pipeline errors

This commit is contained in:
Sung-Hyun Kang 2025-04-27 19:21:42 -05:00
parent 92b288eee7
commit 0f8c6bd524
3 changed files with 6 additions and 6 deletions

View File

@ -61,9 +61,6 @@ export default defineConfig({
name: "webkit",
use: {
...devices["Desktop Safari"],
launchOptions: {
args: ["--disable-web-security"],
},
},
},
{

View File

@ -1,4 +1,4 @@
import { AzureCliCredential } from "@azure/identity";
import { DefaultAzureCredential } from "@azure/identity";
import { Frame, Locator, Page, expect } from "@playwright/test";
import crypto from "crypto";
@ -20,8 +20,8 @@ export function generateUniqueName(baseName, options?: TestNameOptions): string
return `${prefix}${baseName}${crypto.randomBytes(length).toString("hex")}${suffix}`;
}
export function getAzureCLICredentials(): AzureCliCredential {
return new AzureCliCredential();
export function getAzureCLICredentials(): DefaultAzureCredential {
return new DefaultAzureCredential();
}
export async function getAzureCLICredentialsToken(): Promise<string> {

View File

@ -27,6 +27,9 @@ for (const { name, databaseId, containerId, documents } of documentTestCases) {
await documentsTab.documentsListPane.waitFor();
await expect(documentsTab.resultsEditor.locator).toBeAttached({ timeout: 60 * 1000 });
});
test.afterEach(async ({ page }) => {
await page.unrouteAll({ behavior: "ignoreErrors" });
});
for (const document of documents) {
const { documentId: docId, partitionKeys } = document;