Skip to content

Commit 3f7cc3f

Browse files
committed
Update AnalyticalTable.cy.tsx
1 parent 62d8226 commit 3f7cc3f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/main/src/components/AnalyticalTable/AnalyticalTable.cy.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -381,17 +381,14 @@ describe('AnalyticalTable', () => {
381381
function doubleClickResizer(selector: string, columnName: string, outerWidth: number) {
382382
cy.get(selector)
383383
.realHover()
384-
.should(() => {
385-
const color = getComputedStyle(document.documentElement)
386-
.getPropertyValue('--sapContent_DragAndDropActiveColor')
387-
.trim();
388-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
389-
expect(color).to.not.be.empty;
384+
.should(($el) => {
385+
const color = getComputedStyle($el[0]).getPropertyValue('background-color');
386+
expect(color).to.equal(cssVarToRgb('--sapContent_DragAndDropActiveColor'));
390387
})
391-
.should('have.css', 'background-color', cssVarToRgb('--sapContent_DragAndDropActiveColor'))
392388
.dblclick()
393389
// fallback
394390
.realClick({ clickCount: 2 });
391+
395392
cy.get(`[data-column-id="${columnName}"]`)
396393
.invoke('outerWidth')
397394
.should(($width: number) => {

0 commit comments

Comments
 (0)