Skip to content

Commit c9d8d4f

Browse files
committed
update cypress test
1 parent 7a3c098 commit c9d8d4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-integration/cypress/integration/accordion.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ describe('Accordion Demo Test', () => {
4949
throw new Error('expected window');
5050
}
5151
const bg = win.getComputedStyle(el).backgroundColor;
52-
expect(bg).not.to.match(/rgba\(0,\s*0,\s*0,\s*0\)|transparent/);
52+
const fullyTransparent = bg === 'transparent' || bg === 'rgba(0, 0, 0, 0)' || bg === 'rgba(0,0,0,0)';
53+
expect(fullyTransparent, `expected non-transparent background, got ${bg}`).to.eq(false);
5354
});
5455
});
5556
});

0 commit comments

Comments
 (0)