diff --git a/packages/eui/src/components/datagrid/data_grid.spec.tsx b/packages/eui/src/components/datagrid/data_grid.spec.tsx index 6f87de76979..f2e943f9b67 100644 --- a/packages/eui/src/components/datagrid/data_grid.spec.tsx +++ b/packages/eui/src/components/datagrid/data_grid.spec.tsx @@ -567,7 +567,7 @@ describe('EuiDataGrid', () => { .realHover() .realMouseDown({ position: 'center' }) .realMouseMove(0, 0) // start drag - .realMouseMove(200, 0) // move + .realMouseMove(200, 34) // move (absolute coordinates) .realMouseUp(); cy.get('[data-test-subj=dataGridHeaderCell-a]').should( @@ -585,7 +585,7 @@ describe('EuiDataGrid', () => { .realHover() .realMouseDown({ position: 'center' }) .realMouseMove(0, 0) // start drag - .realMouseMove(-200, 0) // move + .realMouseMove(0, 34) // move (absolute coordinates) .realMouseUp(); cy.get('[data-test-subj=dataGridHeaderCell-a]').should( @@ -646,6 +646,9 @@ describe('EuiDataGrid', () => { cy.wait(50); 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.get('[data-test-subj=dataGridHeaderCellActionButton-a]').realClick(); cy.get('.euiPanel').should('have.focus');