Skip to content

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

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

export const createComment = ({
  target_id,
  target_type,
  child_target_id,
  parent_comment_id = null,
  content,
  context,
}: Partial<CreateCommentRequest>): Cypress.Chainable<
  Cypress.Response<Comment>
> => {
  return cy.request<Comment>("POST", "/api/comment", {
    target_id,
    target_type,
    child_target_id,
    parent_comment_id,
    content,
    context,
  });
};