Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

326 B
Raw Blame
import type { Comment, UpdateCommentRequest } from "metabase-types/api";

export const updateComment = ({
  id,
  content,
  is_resolved,
}: Partial<UpdateCommentRequest>): Cypress.Chainable<
  Cypress.Response<Comment>
> => {
  return cy.request<Comment>("PUT", `/api/comment/${id}`, {
    content,
    is_resolved,
  });
};