Skip to content

Commit 9f6c4e4

Browse files
committed
update broken unit test
1 parent 1c3899d commit 9f6c4e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-core/src/components/Drawer/__tests__/DrawerPanelContent.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ test('Style prop overrides boundaryCssVars', () => {
179179
});
180180
});
181181

182-
test(`Renders with class ${styles.modifiers.noGlass} when hasNoGlass is true`, () => {
182+
test(`Renders with class 'pf-m-no-glass' when hasNoGlass is true`, () => {
183183
render(
184184
<Drawer isExpanded isPill>
185185
<DrawerPanelContent hasNoGlass>Drawer panel content</DrawerPanelContent>
186186
</Drawer>
187187
);
188188

189-
expect(screen.getByText('Drawer panel content')).toHaveClass(styles.modifiers.noGlass);
189+
expect(screen.getByText('Drawer panel content')).toHaveClass('pf-m-no-glass');
190190
});

0 commit comments

Comments
 (0)