Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(e2e-tests): import the instantsearch-e2e-tests repo #5169

Merged
merged 94 commits into from
Nov 24, 2022

Commits on Nov 24, 2022

  1. Initial commit

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    713417d View commit details
    Browse the repository at this point in the history
  2. chore: Add LICENSE

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    9dadeb6 View commit details
    Browse the repository at this point in the history
  3. chore: add initial package.json

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    fb6a3e3 View commit details
    Browse the repository at this point in the history
  4. chore: add gitignore

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    d88e69b View commit details
    Browse the repository at this point in the history
  5. chore: add editorconfig

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    62eb38e View commit details
    Browse the repository at this point in the history
  6. chore: add ESLint configuration

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    f77c97b View commit details
    Browse the repository at this point in the history
  7. chore: add TypeScript configuration

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    c4c5312 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    570c716 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fcfbf49 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    895c503 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a678417 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ada3e22 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    bedd34c View commit details
    Browse the repository at this point in the history
  14. chore: update README

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    b37da9c View commit details
    Browse the repository at this point in the history
  15. chore: add files field to package.json

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    4898d6d View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    61dce67 View commit details
    Browse the repository at this point in the history
  17. fix(typescript): fix TypeScript configuration to transpile tests when…

    … in node_modules
    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    ac26bf2 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    4675645 View commit details
    Browse the repository at this point in the history
  19. chore(release): 1.0.0

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    dc7d215 View commit details
    Browse the repository at this point in the history
  20. fix(spec): wait for the browser to be maximized before running the te…

    …st on brand an query filtering
    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    77685c3 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    f7a7b35 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    9c3ae75 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c65c14e View commit details
    Browse the repository at this point in the history
  24. fix(spec): fix Internet Explorer 11 compatibility for test on brand a…

    …nd query filtering
    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    67e6ec2 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    04265d8 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    1dca879 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4c7e7d9 View commit details
    Browse the repository at this point in the history
  28. chore(release): 1.1.0

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    32627c9 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    74ffc16 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    3c6224d View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    aba7055 View commit details
    Browse the repository at this point in the history
  32. feat(helper): add waitForElement helper

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    2ac9e81 View commit details
    Browse the repository at this point in the history
  33. feat(helper): add getHitsTitles helper

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    47ba7aa View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    55e0705 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    cab5478 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    24ab14a View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    bd35db0 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    4361c53 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    9219896 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    bf7df15 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    5987862 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    84b3860 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    151685f View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    532bad1 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    4fc6e12 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    088cda6 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    2a87d12 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    c88757d View commit details
    Browse the repository at this point in the history
  49. feat(helper): add getPage helper

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    45272c3 View commit details
    Browse the repository at this point in the history
  50. feat(helper): add setPage helper

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    88eb380 View commit details
    Browse the repository at this point in the history
  51. feat(helper): add getHitsPerPage helper

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    3ff5f5b View commit details
    Browse the repository at this point in the history
  52. feat(helper): add setHitsPerPage helper

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    ac75b0a View commit details
    Browse the repository at this point in the history
  53. feat(helper): add getSortByValue helper

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    68978bc View commit details
    Browse the repository at this point in the history
  54. feat(helper): add setSortByValue helper

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    8a145ca View commit details
    Browse the repository at this point in the history
  55. feat(helper): add setNextPage helper

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    a70e87f View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    c12f2f1 View commit details
    Browse the repository at this point in the history
  57. fix(helper): fix getTextFromElements helper to use getText selector

    Executing the snippet in the browser to get the textContent was faster, but sometimes fail and only
    return empty strings
    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    ad66a73 View commit details
    Browse the repository at this point in the history
  58. fix(helper): fix getSelectedHierarchicalMenuItems to wait for the ele…

    …ments
    
    Sometimes the menu was not quite ready yet and getSelectedHierarchicalMenuItems was returning an
    empty array
    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    7f144ff View commit details
    Browse the repository at this point in the history
  59. docs(contributing): add CONTRIBUTING.md file (algolia/instantsearch-e…

    …2e-tests#1)
    
    * docs(contributing): add CONTRIBUTING.md file
    
    * Apply suggestions from code review
    
    Co-Authored-By: François Chalifour <[email protected]>
    
    * docs(contributing): fix introduction phrasing
    
    * docs(contributing): add links to directories and files
    
    * Update CONTRIBUTING.md
    
    Co-Authored-By: Haroen Viaene <[email protected]>
    
    * Apply feedbacks
    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    ceae9c9 View commit details
    Browse the repository at this point in the history
  60. feat(spec): add spec for pagination (algolia/instantsearch-e2e-tests#2)

    Yannick Croissant authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    60d293b View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    6124086 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    70709af View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    047ab0f View commit details
    Browse the repository at this point in the history
  64. fix(helper): fix helpers to scroll to elements before attempting to c…

    Yannick Croissant authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    2a31365 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    396ded5 View commit details
    Browse the repository at this point in the history
  66. refactor(helper): rename helpers to better reflect underlying user in…

    Yannick Croissant authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    223001f View commit details
    Browse the repository at this point in the history
  67. chore(release): 1.2.0

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    3c66bcd View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    ae26b40 View commit details
    Browse the repository at this point in the history
  69. chore(release): 1.2.1

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    c2b29a8 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    ab22820 View commit details
    Browse the repository at this point in the history
  71. chore(release): 1.2.2

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    fa644c0 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    541a208 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    2bc94e6 View commit details
    Browse the repository at this point in the history
  74. chore(release): 1.2.3

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    6bbb563 View commit details
    Browse the repository at this point in the history
  75. fix(setSearchBoxValue): reset searchbox before editing (algolia/insta…

    …ntsearch-e2e-tests#15)
    
    * fix(setSearchBoxValue): reset searchbox before editing
    
    In React and Preact the CLEAR selenium instruction does not fire any event, and therefore does not update the component's internal state (see this job for example: https://app.saucelabs.com/tests/4518f96fdfd447e998786d0ff463658a#54)
    
    It is equivalent to `input.value = ''`.
    
    There are multiple sources reporting a similar behaviour (see SeleniumHQ/selenium#6741)
    
    Since this change: #4202
    
    ```jsx
    <input value={state.query} />
    ```
    
    instead of
    
    ```jsx
    <input value={props.query} />
    ```
    
    Since binding the input value to a `state.query` (rather than a `props.query`), it appears the click we use to focus on the searchbox re-syncs `input.value` with `state.query`.
    tkrugg authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    c517af1 View commit details
    Browse the repository at this point in the history
  76. chore(release): 1.2.4

    tkrugg authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    5de26a9 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    2c4d0a8 View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    c06932f View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    f4883eb View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    78c2df5 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    1e7c9df View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    db4f073 View commit details
    Browse the repository at this point in the history
  83. fix(spec): improve specs reliability to minimize flakyness (algolia/i…

    …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.
    Yannick Croissant authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    6682412 View commit details
    Browse the repository at this point in the history
  84. chore(release): 1.3.0

    yannickcr authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    60f5f7f View commit details
    Browse the repository at this point in the history
  85. feat: generate junit test reports by default with saucelabs (algolia/…

    …instantsearch-e2e-tests#29)
    
    BREAKING CHANGE: tested projects now require `@wdio/junit-reporter`.
    dhayab authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    04c5d67 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    2d889a3 View commit details
    Browse the repository at this point in the history
  87. chore(release): 2.0.0

    dhayab authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    3708849 View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    54b3e8c View commit details
    Browse the repository at this point in the history
  89. chore(release): 2.0.1

    dhayab authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    85bbc29 View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    d088d9e View commit details
    Browse the repository at this point in the history
  91. chore(release): 2.0.2

    dhayab authored and Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    dd904fb View commit details
    Browse the repository at this point in the history
  92. feat(tests): migrate for monorepo

    - wrap tests in "flavor" factory
    - remove ci setup (doesn't work with old URL anymore)
    
    BREAKING CHANGE: this requires the url to be /examples/js/e-commerce instead of /examples/e-commerce. This means that until the package is in the monorepo, its tests wouldn't pass. After the main monorepo PR is merged, this repo will move inside and will no longer be published.
    Haroenv committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    66c23a0 View commit details
    Browse the repository at this point in the history
  93. refactor(e2e): changes for inclusion in monorepo

    Co-Authored-By: Sarah Dayan <[email protected]>
    Haroenv and sarahdayan committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    7c0d464 View commit details
    Browse the repository at this point in the history
  94. docs(contributing): change wording

    Co-Authored-By: Sarah Dayan <[email protected]>
    Haroenv and sarahdayan committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    2931f8f View commit details
    Browse the repository at this point in the history