diff --git a/cypress/component/Input.spec.tsx b/cypress/component/Input.spec.tsx index 1ede239533..7c4bf3d39d 100644 --- a/cypress/component/Input.spec.tsx +++ b/cypress/component/Input.spec.tsx @@ -45,4 +45,21 @@ describe('Input', () => { variant: 'error-status/after-focused', }) }) + + it('shows the `X` when hover over the input', () => { + cy.mount( + + + + ) + + cy.getByTestId('reset-button').should('not.be.visible') + // making sure that we hover over the very end of the input not just the text of the input + cy.getByTestId('reset-button').realHover() + cy.getByTestId('reset-button').should('be.visible') + }) }) diff --git a/package.json b/package.json index 7823c5985a..b173bf1de7 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,6 @@ "webpack": "^5.0.0", "yaml": "2", "micromatch": "^4.0.8" - }, "devDependencies": { "@actions/core": "^1.10.0",