Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

fix(spec): improve specs reliability to minimize flackyness #21

Merged
merged 4 commits into from
Apr 6, 2020

Conversation

yannickcr
Copy link
Contributor

@yannickcr yannickcr commented Apr 6, 2020

This PR contains multiple improvements for specs reliability:

  • Remove debugging and performance flags on Chrome on SauceLabs.
    This was making the tests longer to run and therefore getting an higher chance to timeout.

  • Update helpers to always wait for the URL to be updated.
    This way we always wait for all changes to be done before running the next command.

  • Replace the getTextFromElements helper by getTextFromSelector
    This helper is way more performant since all operations are made in the browser.
    It removes a lot of back and forth between the runner and the browser, minimizing the risk of errors.

  • Round elements coordinates when doing a drag and drop
    From my tests it improves drag and drop precision on Internet Explorer. There is still some flackyness on drag and drop, but I did not find way to completely solve it 😞

* Remove debugging and performance flags on Chrome on SauceLabs.
  This was making the tests longer to run and getting an higher chance to timeout.

* Update helpers to always wait for the URL to be updated.
  This way we always wait for all changes to be done before running the next command.

* Replace the `getTextFromElements` helper by `getTextFromSelector`
  This helper is way more performant since all operations are made in the browser.
  It removes a lot of back and forth between the runner and the browser, minimizing the risk of errors.
Copy link

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor looks good to me

Copy link
Member

@francoischalifour francoischalifour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those comments are helpful!

helpers/clickClearRefinements.ts Outdated Show resolved Hide resolved
@yannickcr yannickcr merged commit 44bae68 into master Apr 6, 2020
@yannickcr yannickcr deleted the fix/flackyness branch April 6, 2020 16:33
Haroenv pushed a commit to algolia/instantsearch that referenced this pull request Nov 24, 2022
…nstantsearch-e2e-tests#21)

* Remove debugging and performance flags on Chrome on SauceLabs.
  This was making the tests longer to run and therefore getting an higher chance to timeout.

* Update helpers to always wait for the URL to be updated.
  This way we always wait for all changes to be done before running the next command.

* Replace the `getTextFromElements` helper by `getTextFromSelector`
  This helper is way more performant since all operations are made in the browser.
  It removes a lot of back and forth between the runner and the browser, minimizing the risk of errors.

* Round elements coordinates when doing a drag and drop
  From my tests it improves drag and drop precision on Internet Explorer. There is still some flackyness on drag and drop, but I did not find way to completely solve it.
Haroenv pushed a commit to algolia/instantsearch that referenced this pull request Nov 24, 2022
…nstantsearch-e2e-tests#21)

* Remove debugging and performance flags on Chrome on SauceLabs.
  This was making the tests longer to run and therefore getting an higher chance to timeout.

* Update helpers to always wait for the URL to be updated.
  This way we always wait for all changes to be done before running the next command.

* Replace the `getTextFromElements` helper by `getTextFromSelector`
  This helper is way more performant since all operations are made in the browser.
  It removes a lot of back and forth between the runner and the browser, minimizing the risk of errors.

* Round elements coordinates when doing a drag and drop
  From my tests it improves drag and drop precision on Internet Explorer. There is still some flackyness on drag and drop, but I did not find way to completely solve it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants