INNER CODE UNIT · TypeScript

deleteV2Entity

odigos-io/odigos · frontend/webapp/cypress/functions/index.ts:274

export const deleteV2Entity = ({ nodeId, nodeContains, prefix, warnModalTitle, warnModalNote }: DeleteV2EntityOptions, callback?: () => void) => {
  openOverviewEntity({ nodeId, nodeContains });

  cy.get(DATA_IDS.DRAWER_ACTIONS).click();
  cy.get(DATA_IDS.DROPDOWN_OPTION(`${prefix}-btn-delete`)).click();

  if (!!warnModalTitle) cy.get(DATA_IDS.MODAL).contains(warnModalTitle).should('exist');
  if (!!warnModalNote) cy.get(DATA_IDS.MODAL).contains(warnModalNote).should('exist');

  cy.get(DATA_IDS.APPROVE).click();

  if (!!callback) callback();

  waitForDrawerClosed();
};

interface AwaitToastOptions {
  message: string;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…