INNER CODE UNIT · TypeScript
waitForDrawerClosed
odigos-io/odigos · frontend/webapp/cypress/functions/index.ts:58
export const waitForDrawerClosed = () => {
cy.get(DATA_IDS.DRAWER).should('not.exist');
};
const openOverviewEntity = ({ nodeId, nodeContains }: { nodeId: string; nodeContains?: string }) => {
clickRetryable(nodeId, nodeContains);
cy.get(DATA_IDS.DRAWER).should('exist');
};
interface WaitForCrdCountOptions {
namespace: string;
crdName: string;
minCount: number;
maxAttempts?: number;
intervalMs?: number;
}
// Poll until CRD count is >= minCount (create path can lag behind the UI toast on slower clusters).