Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const euiDataGridHeaderCellStyles = (euiThemeContext: UseEuiTheme) => {
${logicalCSS('margin-left', margin)}
transform: translateX(${translateX}) scale(0.01);
opacity: 0;
pointer-events: none;
}
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import React, { useState } from 'react';
import { EuiDataGrid, EuiDataGridProps } from '../../index';
import { EuiModal, EuiModalBody } from '../../../modal';

const WAIT_FOR_TRANSITION = 250;

describe('draggable columns', () => {
const columns = [
{ id: 'a', display: 'First' },
Expand Down Expand Up @@ -236,7 +238,7 @@ describe('draggable columns', () => {
cy.get('[data-popover-open]').should('not.exist');

// Should not interefere with column actions popover toggle
cy.wait(250);
cy.wait(WAIT_FOR_TRANSITION);
cy.get('[data-test-subj=dataGridHeaderCellActionButton-a]').realClick();
cy.get('[data-popover-open]').should('have.focus');
cy.get('[data-test-subj=dataGridHeaderCellActionButton-a]').realClick();
Expand All @@ -247,7 +249,7 @@ describe('draggable columns', () => {
cy.realMount(<StatefulDataGrid />);

cy.get('[data-test-subj=dataGridHeaderCell-a]').realHover();
cy.wait(50); // wait until actions button transition is progressed enough for the button to be clickable
cy.wait(WAIT_FOR_TRANSITION); // wait until actions button transition is progressed enough for the button to be clickable
cy.get('[data-test-subj=dataGridHeaderCellActionButton-a]').realClick();
cy.get('[data-popover-open]').should('have.focus');

Expand Down Expand Up @@ -297,7 +299,7 @@ describe('draggable columns', () => {
);

cy.get('[data-test-subj=dataGridHeaderCell-a]').realHover();
cy.wait(50); // wait until actions button transition is progressed enough for the button to be clickable
cy.wait(WAIT_FOR_TRANSITION); // wait until actions button transition is progressed enough for the button to be clickable
cy.get('[data-test-subj=dataGridHeaderCellActionButton-a]').realClick();
cy.get('[data-popover-open]').should('have.focus');

Expand Down