From a900e8a71eaf79c839d41a77d3bf7737ea230266 Mon Sep 17 00:00:00 2001 From: Per-Kristian Nordnes Date: Fri, 20 Oct 2023 13:23:23 +0200 Subject: [PATCH] test(playwright-ct): update props after refactor --- .../playwright-ct/tests/comments/CommentInputStory.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/sanity/playwright-ct/tests/comments/CommentInputStory.tsx b/packages/sanity/playwright-ct/tests/comments/CommentInputStory.tsx index 8d8573a0f30..28f356b81d1 100644 --- a/packages/sanity/playwright-ct/tests/comments/CommentInputStory.tsx +++ b/packages/sanity/playwright-ct/tests/comments/CommentInputStory.tsx @@ -1,5 +1,6 @@ import React, {useState} from 'react' import {CurrentUser, PortableTextBlock} from '@sanity/types' +import {noop} from 'lodash' import {CommentInput} from '../../../src/desk/comments/src/components/pte/comment-input/CommentInput' import {TestWrapper} from '../formBuilder/utils/TestWrapper' @@ -28,12 +29,9 @@ export function CommentsInputStory() { onChange={setValue} value={value} mentionOptions={{data: [], error: null, loading: false}} - onEditDiscard={() => { - // ... - }} - onSubmit={() => { - // ... - }} + onDiscardConfirm={noop} + onDiscardCancel={noop} + onSubmit={noop} /> )