INNER CODE UNIT · TypeScript

updateV2Entity

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

export const updateV2Entity = ({ nodeId, nodeContains, prefix, fieldKey, fieldValue }: UpdateV2EntityOptions, callback?: () => void) => {
  openOverviewEntity({ nodeId, nodeContains });

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

  cy.get(fieldKey).click().focused().clear().type(fieldValue);
  cy.get(fieldKey).should('have.value', fieldValue);

  cy.get(`[data-id=${prefix}-btn-save]`).click();

  if (!!callback) callback();

  cy.get(DATA_IDS.DRAWER_CLOSE).click();
  waitForDrawerClosed();
};

interface DeleteV2EntityOptions {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…