Skip to content

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

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

export const createReaction = ({
  comment_id,
  emoji,
}: {
  comment_id: CommentId;
  emoji: string;
}): Cypress.Chainable<Cypress.Response<Comment>> => {
  return cy.request<Comment>("POST", `/api/comment/${comment_id}/reaction`, {
    emoji,
  });
};