diff --git a/superset-frontend/cypress-base/cypress/integration/sqllab/tabs.test.js b/superset-frontend/cypress-base/cypress/integration/sqllab/tabs.test.js
index d876ef637..8f5294699 100644
--- a/superset-frontend/cypress-base/cypress/integration/sqllab/tabs.test.js
+++ b/superset-frontend/cypress-base/cypress/integration/sqllab/tabs.test.js
@@ -40,10 +40,12 @@ describe('SqlLab query tabs', () => {
const initialTabCount = tabListA.length;
// open the tab dropdown to remove
- cy.get('.SqlEditorTabs > ul > li .dropdown-toggle').click();
+ cy.get('.SqlEditorTabs > ul > li .dropdown-toggle').click({
+ force: true,
+ });
// first item is close
- cy.get('.SqlEditorTabs .close-btn a').click();
+ cy.get('.SqlEditorTabs .ddbtn-tab .close').first().click();
cy.get('.SqlEditorTabs > ul > li').should(
'have.length',
diff --git a/superset-frontend/spec/javascripts/sqllab/TabStatusIcon_spec.jsx b/superset-frontend/spec/javascripts/sqllab/TabStatusIcon_spec.jsx
index 4db08f843..4241353dc 100644
--- a/superset-frontend/spec/javascripts/sqllab/TabStatusIcon_spec.jsx
+++ b/superset-frontend/spec/javascripts/sqllab/TabStatusIcon_spec.jsx
@@ -36,18 +36,4 @@ describe('TabStatusIcon', () => {
expect(wrapper.find('div.circle')).toHaveLength(1);
expect(wrapper.text()).toBe('');
});
-
- it('renders a circle with an x when hovered', () => {
- const { wrapper } = setup();
- wrapper.simulate('mouseOver');
- expect(wrapper.find('div.circle')).toHaveLength(1);
- expect(wrapper.text()).toBe('×');
- });
-
- it('calls onClose from props when clicked', () => {
- const { wrapper, onClose } = setup();
- wrapper.simulate('click');
- // eslint-disable-next-line no-unused-expressions
- expect(onClose.calledOnce).toBe(true);
- });
});
diff --git a/superset-frontend/src/SqlLab/components/TabStatusIcon.jsx b/superset-frontend/src/SqlLab/components/TabStatusIcon.jsx
index ec8a3f2f6..1eeedd1e1 100644
--- a/superset-frontend/src/SqlLab/components/TabStatusIcon.jsx
+++ b/superset-frontend/src/SqlLab/components/TabStatusIcon.jsx
@@ -19,42 +19,10 @@
import React from 'react';
import PropTypes from 'prop-types';
-const propTypes = {
- onClose: PropTypes.func.isRequired,
- tabState: PropTypes.string.isRequired,
-};
-
-class TabStatusIcon extends React.Component {
- constructor(props) {
- super(props);
- this.onMouseOver = this.onMouseOver.bind(this);
- this.onMouseOut = this.onMouseOut.bind(this);
-
- this.state = { isHovered: false };
- }
-
- onMouseOver() {
- this.setState({ isHovered: true });
- }
-
- onMouseOut() {
- this.setState({ isHovered: false });
- }
-
- render() {
- return (
-
-