Fix playwright tests (#2325)

* Fix cleanupDBs.js: use async iteration for Azure SDK paged results

* update node version

* fix cleanup script to use new Cosmos SDK APIs correctly

* get rid of global crypto

* fix flakiness

* revert DE pipeline to use Node 18

* nit

---------

Co-authored-by: Asier Isayas <aisayas@microsoft.com>
This commit is contained in:
asier-isayas
2026-04-03 14:34:10 -04:00
committed by GitHub
parent 2ba58cd1a5
commit aa70cf994a
3 changed files with 39 additions and 31 deletions

View File

@@ -24,6 +24,14 @@ test.describe("Vector Policy under Scale & Settings", () => {
await vectorPolicyTab.click();
});
test.afterEach("Clear vector policies", async () => {
const { resource: containerDef } = await context.container.read();
if (containerDef.vectorEmbeddingPolicy?.vectorEmbeddings?.length) {
containerDef.vectorEmbeddingPolicy.vectorEmbeddings = [];
await context.container.replace(containerDef);
}
});
test.afterAll("Delete Test Database", async () => {
await context?.dispose();
});