From f15301fbe3f10ca23bdf676fbb625246e2a748f5 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Thu, 17 Nov 2022 10:30:28 +0000 Subject: [PATCH] Fix test --- .../mui-joy/src/CircularProgress/CircularProgress.test.tsx | 6 ++++-- packages/mui-joy/src/Menu/Menu.test.js | 2 +- packages/mui-joy/src/SvgIcon/SvgIcon.test.js | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx b/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx index ca12d541725a09..99422dcd1fb5e1 100644 --- a/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx +++ b/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx @@ -19,8 +19,10 @@ describe('', () => { testCustomVariant: true, slots: { root: { expectedClassName: classes.root }, - svg: { expectedClassName: classes.svg }, - track: { expectedClassName: classes.track }, + svg: { expectedClassName: classes.svg, testWithElement: 'svg' }, + track: { + expectedClassName: classes.track, + }, progress: { expectedClassName: classes.progress }, }, skip: ['classesRoot', 'componentsProp'], diff --git a/packages/mui-joy/src/Menu/Menu.test.js b/packages/mui-joy/src/Menu/Menu.test.js index a4b4fe709d4f14..02e21a47f956ab 100644 --- a/packages/mui-joy/src/Menu/Menu.test.js +++ b/packages/mui-joy/src/Menu/Menu.test.js @@ -21,7 +21,7 @@ describe('Joy ', () => { testVariantProps: { variant: 'soft' }, testCustomVariant: true, slots: { - root: { expectedClassName: classes.root }, + root: { expectedClassName: classes.root, testWithComponent: 'ul' }, }, skip: [ 'rootClass', // portal, can't determin the root diff --git a/packages/mui-joy/src/SvgIcon/SvgIcon.test.js b/packages/mui-joy/src/SvgIcon/SvgIcon.test.js index 01456e20c63ec1..93d22fe172045b 100644 --- a/packages/mui-joy/src/SvgIcon/SvgIcon.test.js +++ b/packages/mui-joy/src/SvgIcon/SvgIcon.test.js @@ -37,7 +37,7 @@ describe('', () => { ), slots: { - root: { expectedClassName: classes.root }, + root: { expectedClassName: classes.root, testWithComponent: 'svg' }, }, skip: ['themeVariants', 'classesRoot', 'componentsProp'], }),