diff --git a/playwright.config.ts b/playwright.config.ts index 8087b19c8..b1f6a622d 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -61,9 +61,6 @@ export default defineConfig({ name: "webkit", use: { ...devices["Desktop Safari"], - launchOptions: { - args: ["--disable-web-security"], - }, }, }, { diff --git a/test/fx.ts b/test/fx.ts index e15513004..6d7263a8a 100644 --- a/test/fx.ts +++ b/test/fx.ts @@ -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 { diff --git a/test/mongo/document.spec.ts b/test/mongo/document.spec.ts index e02279801..289c71c85 100644 --- a/test/mongo/document.spec.ts +++ b/test/mongo/document.spec.ts @@ -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;