We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b83963f commit 1049f92Copy full SHA for 1049f92
tests/unique.test.tsx
@@ -212,9 +212,10 @@ describe('Trigger.Unique', () => {
212
// Check that FloatBg has the custom background style
213
const floatBg = document.querySelector('.rc-trigger-popup-float-bg');
214
expect(floatBg).toBeTruthy();
215
- const computedStyle = window.getComputedStyle(floatBg);
216
- expect(computedStyle.backgroundColor).toBe('red');
217
- expect(computedStyle.border).toContain('1px solid blue');
+ expect(floatBg).toHaveStyle({
+ backgroundColor: 'red',
+ border: '1px solid blue',
218
+ });
219
});
220
221
it('should not apply any additional className to FloatBg when uniqueBgClassName is not provided', async () => {
0 commit comments