Skip to content

Commit

Permalink
chore: update comment on use of force for clear button click
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeramsama committed Nov 1, 2022
1 parent 57841ec commit 61181c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/e2e/cypress/integration/common/geo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ When('I clear the search results', () => {
cy.findByRole('textbox', {
name: /search/i,
}).trigger('mouseenter');
// Adding 'force' as the clear button is hidden until we hover on textbox,
// and the click action seems to happen before the hover thus failing the check for the clear button element.
/**
* Adding 'force' as the clear button is hidden until we hover on textbox,
* and the click action seems to happen before the hover thus failing the check for the clear button element.
*/
cy.findByRole('button', { name: 'Clear' }).click({ force: true });
});

Expand Down

0 comments on commit 61181c6

Please sign in to comment.