Skip to content

Commit 9a23040

Browse files
committed
fix(SummaryCard): update test selectors from "topOverlay" to "overlay" for consistency
Refactored test cases in SummaryCard to use the updated class name "overlay" instead of "topOverlay" for querying elements. This change ensures alignment with the recent component updates and maintains consistency across tests.
1 parent 98fa26b commit 9a23040

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/ui/src/components/Card/SummaryCard.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ describe('SummaryCard', () => {
786786
/>
787787
);
788788

789-
const overlay = container.querySelector('[class*="topOverlay"]');
789+
const overlay = container.querySelector('[class*="overlay"]');
790790
expect(overlay).toHaveStyle({ background: 'rgba(0, 0, 0, 0.6)' });
791791
});
792792

@@ -802,7 +802,7 @@ describe('SummaryCard', () => {
802802
/>
803803
);
804804

805-
const overlay = container.querySelector('[class*="topOverlay"]');
805+
const overlay = container.querySelector('[class*="overlay"]');
806806
expect(overlay).toHaveStyle({ background: 'rgba(255, 0, 0, 0.8)' });
807807
});
808808

@@ -818,7 +818,7 @@ describe('SummaryCard', () => {
818818
/>
819819
);
820820

821-
const overlay = container.querySelector('[class*="topOverlay"]');
821+
const overlay = container.querySelector('[class*="overlay"]');
822822
expect(overlay).toHaveStyle({ justifyContent: 'flex-end' });
823823
});
824824

@@ -834,7 +834,7 @@ describe('SummaryCard', () => {
834834
/>
835835
);
836836

837-
const overlay = container.querySelector('[class*="topOverlay"]');
837+
const overlay = container.querySelector('[class*="overlay"]');
838838
expect(overlay).toHaveStyle({ height: '60px' });
839839
});
840840

@@ -850,7 +850,7 @@ describe('SummaryCard', () => {
850850
/>
851851
);
852852

853-
const overlay = container.querySelector('[class*="topOverlay"]');
853+
const overlay = container.querySelector('[class*="overlay"]');
854854
expect(overlay).toHaveStyle({ padding: '16px' });
855855
});
856856

0 commit comments

Comments
 (0)