Skip to content

Commit 1f7cc02

Browse files
committed
update cypress test
1 parent 9662112 commit 1f7cc02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ describe('Data List Demo Test', () => {
2323
throw new Error('expected window');
2424
}
2525
const bg = win.getComputedStyle(el).backgroundColor;
26-
expect(bg).not.to.match(/rgba\(0,\s*0,\s*0,\s*0\)|transparent/);
26+
const fullyTransparent = bg === 'transparent' || bg === 'rgba(0, 0, 0, 0)' || bg === 'rgba(0,0,0,0)';
27+
expect(fullyTransparent, `expected non-transparent background, got ${bg}`).to.eq(false);
2728
});
2829
});
2930

0 commit comments

Comments
 (0)