INNER CODE UNIT · TypeScript
updateEntity
odigos-io/odigos · frontend/webapp/cypress/functions/index.ts:193
export const updateEntity = ({ nodeId, nodeContains, fieldKey, fieldValue }: UpdateEntityOptions, callback?: () => void) => {
openOverviewEntity({ nodeId, nodeContains });
cy.get(DATA_IDS.DRAWER_EDIT).click();
cy.get(fieldKey).click().focused().clear().type(fieldValue);
cy.get(fieldKey).should('have.value', fieldValue);
cy.get(DATA_IDS.DRAWER_SAVE).click();
cy.get(DATA_IDS.DRAWER_CLOSE).click();
waitForDrawerClosed();
if (!!callback) callback();
};
interface DeleteEntityOptions {
nodeId: string;
nodeContains: string;
warnModalTitle?: string;
warnModalNote?: string;