Skip to content

Commit

Permalink
Make assertions key visibility concurrent
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-debruijn committed Aug 21, 2024
1 parent abadc46 commit 8d2b9f2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions e2e/tests/integrations/admin/assert-key-visibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ export const assertKeyVisibility = async (

const tables = [uiTiDv1Consumers, auth0Clients, keycloakClients];

for (const table of tables) {
for (const environment of Object.values(Environment)) {
const assertions = tables.map((table) => {
return Object.values(Environment).map(async (environment) => {
const row = table.getByRole("row", {
name: `${environment} ${StatusToCopy[integrationStatus]}`,
});
await expect(row).toBeVisible({ timeout: 7_000 });
}
}
});
});

await Promise.all(assertions.flat());
}).toPass({
intervals: [1_000, 2_000],
intervals: [1_000, 2_000, 3_000],
});
};

0 comments on commit 8d2b9f2

Please sign in to comment.