From 06762645b581efae217a74ad8494300882bb02cd Mon Sep 17 00:00:00 2001 From: RitaDias Date: Fri, 6 Sep 2024 12:51:54 +0200 Subject: [PATCH] test(sanity): fix test for ReleaseMenuButton --- .../ReleaseMenuButton/__tests__/ReleaseMenuButton.test.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/sanity/src/core/releases/components/ReleaseMenuButton/__tests__/ReleaseMenuButton.test.tsx b/packages/sanity/src/core/releases/components/ReleaseMenuButton/__tests__/ReleaseMenuButton.test.tsx index f0efff37cb49..24e715510ad1 100644 --- a/packages/sanity/src/core/releases/components/ReleaseMenuButton/__tests__/ReleaseMenuButton.test.tsx +++ b/packages/sanity/src/core/releases/components/ReleaseMenuButton/__tests__/ReleaseMenuButton.test.tsx @@ -1,5 +1,6 @@ import {beforeEach, describe, expect, jest, test} from '@jest/globals' import {fireEvent, render, screen} from '@testing-library/react' +import {act} from 'react' import {useRouter} from 'sanity/router' import {createTestProvider} from '../../../../../../test/testUtils/TestProvider' @@ -49,7 +50,6 @@ describe('BundleMenuButton', () => { _type: 'release', archivedAt: undefined, title: 'activeBundle', - slug: 'activeBundle', authorId: 'author', _createdAt: new Date().toISOString(), _updatedAt: new Date().toISOString(), @@ -78,7 +78,6 @@ describe('BundleMenuButton', () => { _type: 'release', archivedAt: new Date().toISOString(), title: 'activeBundle', - slug: 'activeBundle', authorId: 'author', _createdAt: new Date().toISOString(), _updatedAt: new Date().toISOString(), @@ -106,7 +105,6 @@ describe('BundleMenuButton', () => { _type: 'release', archivedAt: new Date().toISOString(), title: 'activeBundle', - slug: 'activeBundle', authorId: 'author', _createdAt: new Date().toISOString(), _updatedAt: new Date().toISOString(), @@ -138,7 +136,6 @@ describe('BundleMenuButton', () => { _type: 'release', archivedAt: new Date().toISOString(), title: 'activeEmptyBundle', - slug: 'activeEmptyBundle', authorId: 'author', _createdAt: new Date().toISOString(), _updatedAt: new Date().toISOString(), @@ -171,7 +168,6 @@ describe('BundleMenuButton', () => { _type: 'release', archivedAt: new Date().toISOString(), title: 'activeEmptyBundle', - slug: 'activeEmptyBundle', authorId: 'author', _createdAt: new Date().toISOString(), _updatedAt: new Date().toISOString(),