mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-17 03:49:23 +01:00
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:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user