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 2f948af commit f542cd1Copy full SHA for f542cd1
packages/main/src/components/AnalyticalTable/AnalyticalTable.cy.tsx
@@ -382,9 +382,12 @@ describe('AnalyticalTable', () => {
382
cy.get(selector)
383
.realHover()
384
.should(($el) => {
385
- const color = getComputedStyle($el[0]).getPropertyValue('background-color');
386
- expect(color).to.equal(cssVarToRgb('--sapContent_DragAndDropActiveColor'));
387
- }, 200)
+ // the CSS variable is applied too late in React 18.
+ if (!reactVersion.startsWith('18')) {
+ const color = getComputedStyle($el[0]).getPropertyValue('background-color');
388
+ expect(color).to.equal(cssVarToRgb('--sapContent_DragAndDropActiveColor'));
389
+ }
390
+ })
391
.dblclick()
392
// fallback
393
.realClick({ clickCount: 2 });
0 commit comments