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

Test upgrade #779

Merged
merged 90 commits into from
May 12, 2024
Merged

Test upgrade #779

merged 90 commits into from
May 12, 2024

Commits on Jul 16, 2023

  1. Update .gitignore

    * Ignore some contents of the .yarn directory
    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    1f64f19 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb8cced View commit details
    Browse the repository at this point in the history
  3. Upgrade @tl/react and @tl/user-event

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    9626335 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e0ba05b View commit details
    Browse the repository at this point in the history
  5. Update input_numeric_format

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    02b4152 View commit details
    Browse the repository at this point in the history
  6. Update tests in input.spec (WIP)

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    ece15cd View commit details
    Browse the repository at this point in the history
  7. Update tests in keypress_and_caret (WIP)

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    1cf0453 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5f00fe9 View commit details
    Browse the repository at this point in the history
  9. Convert more tests in input.spec.jsx

    * Rename input.spec.js to input.spec.jsx
    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    4e26d9a View commit details
    Browse the repository at this point in the history
  10. Add missing dependencies

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    60b347d View commit details
    Browse the repository at this point in the history
  11. Use 'renderHook' from @testing-library/react

    * Remove @testing-library/react-hooks
    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    6c88127 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b36deec View commit details
    Browse the repository at this point in the history
  13. Update some of the tests using mocks

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    14dc8c8 View commit details
    Browse the repository at this point in the history
  14. Update remaining tests in input.spec

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    d7dbf17 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f30ace6 View commit details
    Browse the repository at this point in the history
  16. Update tests in keypress_and_caret.spec

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    5912b0f View commit details
    Browse the repository at this point in the history
  17. Update simulateFocusEvent function

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    028b0fb View commit details
    Browse the repository at this point in the history
  18. Upgrade vitest

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    e1bb4e4 View commit details
    Browse the repository at this point in the history
  19. Update more tests in keypress_and_caret

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    0194425 View commit details
    Browse the repository at this point in the history
  20. Change file type - js to jsx

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    a0698ac View commit details
    Browse the repository at this point in the history
  21. Update tests in format_as_text.spec

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    cf41347 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    ff6f7fc View commit details
    Browse the repository at this point in the history
  23. Remove karma, enzyme from dependencies

    aashu16 authored and s-yadav committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    1e03f76 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2023

  1. Configuration menu
    Copy the full SHA
    651faa5 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2023

  1. Configuration menu
    Copy the full SHA
    825c87d View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. Configuration menu
    Copy the full SHA
    d0c8814 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    06de10f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8389c4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a2ebb9f View commit details
    Browse the repository at this point in the history
  5. Add tests for splitDecimal

    aashu16 committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    66c5df2 View commit details
    Browse the repository at this point in the history
  6. Add tests for limitToScale

    aashu16 committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    9e82f15 View commit details
    Browse the repository at this point in the history
  7. Add tests for fixLeadingZero

    aashu16 committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    6cd067d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    56e1685 View commit details
    Browse the repository at this point in the history
  9. Add tests for findChangeRange

    aashu16 committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    f71cc8d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a90243d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9977919 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0b6b90b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    1f53d49 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    85c496a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d0b1b4c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a122e06 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    5a2dfa6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    0a09aff View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. Remove data-testid attr in renderText span

    * Update tests which use the data-testid attribute to query the span
      element.
    * Replace the getByTestId queries with getByText and check if the span
      expected to contain the text is visible.
    aashu16 committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    dd09693 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bd88d0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f9bfbba View commit details
    Browse the repository at this point in the history
  4. Update testing dependencies

    * @testing-library/jest-dom
    * @testing-library/react
    * jsdom
    * vitest
    aashu16 committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    a2054dc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e051e34 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. Remove usage of removed helper function

    * Remove instances of getCustomEvent and use simulateKeyInput instead.
    aashu16 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    7fc8288 View commit details
    Browse the repository at this point in the history
  2. Remove redundant tests

    aashu16 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    789c992 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    523cd7c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c258860 View commit details
    Browse the repository at this point in the history
  5. Fix import in test_util

    aashu16 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    bf0c31a View commit details
    Browse the repository at this point in the history
  6. Simplify and improve simulateKeyInput helper

    * Replace user.keyboard from `@testing-library/user-event` with
      user.type which seems to be better suited for inserting text in input
      fields (https://testing-library.com/docs/user-event/utility#type).
    aashu16 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    772a432 View commit details
    Browse the repository at this point in the history
  7. Remove more skipped tests

    aashu16 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    6046396 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0076fd0 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2024

  1. Configuration menu
    Copy the full SHA
    4ad5222 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f93405c View commit details
    Browse the repository at this point in the history
  3. Merge updates from 'master'

    aashu16 committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    7f5abad View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Configuration menu
    Copy the full SHA
    e304586 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cc4a99 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    68cb95b View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Add options parameter to simulateKeyInput

    * Some tests don't work with `user.type` method provided by
      @testing-library/user-event (v14). The updated wrapper function
      `simulateKeyInput` accepts an additional argument - options - which
      can be used to specify that the `user.keyboard` method should be used
      instead.
    * Every test which works with one of `user.type` or `user.keyboard` and
      not the other has been manually tested to confirm that the component
      being tested exhibits the correct/expected behaviour.
    aashu16 committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    656023e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae2e50f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8254a3a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d83cd01 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2024

  1. Uncomment tests in input_numeric_format

    * Some tests were commented out during migration to the new testing
      setup. All such tests have now been added back.
    aashu16 committed Mar 6, 2024
    Configuration menu
    Copy the full SHA
    561cd12 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2024

  1. Configuration menu
    Copy the full SHA
    aa7ef41 View commit details
    Browse the repository at this point in the history
  2. Fix incorrect test

    s-yadav committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    705ddc2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0ed4d59 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. Replace existing assertion with a positive one

    * The positive assertion makes more sense while still covering the
      negative assertion case.
    aashu16 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    440ab3b View commit details
    Browse the repository at this point in the history
  2. Simplify simulateKeyInput function

    * Key input now directly uses @test-library/user-event to type text into
      the input element being tested. Previously, in some cases, the
      function used `fireEvent.change` to update the value of the input
      element with a pre-computed value.
    * This change does not extend to "special keys" such as `Backspace` or
      `Delete`.
    aashu16 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    8512532 View commit details
    Browse the repository at this point in the history
  3. Remove clearInput from a test

    * The test now uses the `simulateKeyInput` function to set
      `input.selectionRange`. Pressing any key then replaces the selected text
      inside the input element.
    aashu16 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    58332a9 View commit details
    Browse the repository at this point in the history
  4. Add more helper functions to simulate user actions

    * Added functions to select text inside an input element by, 1) double clicking
      inside it at a given position, and 2) pressing and dragging the mouse cursor.
    aashu16 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    6739eca View commit details
    Browse the repository at this point in the history
  5. Update tsconfig.json

    aashu16 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    c3668f1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6dd234f View commit details
    Browse the repository at this point in the history
  7. Update simulatePaste internals and update test

    * If `selectionEnd` is undefined, it is set to `selectionStart`, which
      matches the behaviour of `simulateKeyInput` function.
    * It also uses other functions to select text inside the input element
      instead of directly setting the `selectionRange`.
    aashu16 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    9fb4bb9 View commit details
    Browse the repository at this point in the history
  8. Add helper to click on input to get focus

    * The other `simulateFocus` should ideally be used only when necessary
      as clicking to focus handles the more general cases when the user
      takes an action to focus the input element.
    aashu16 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    7f32707 View commit details
    Browse the repository at this point in the history
  9. Remove duplicate test

    aashu16 committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    cd3feb8 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Configuration menu
    Copy the full SHA
    7187a07 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2024

  1. Skip failing tests, correct assertion

    * Add the todo annotation to four tests that are currently failing.
      These tests have been confirmed to fail in a browser upon manual
      testing.
    * Fix incorrect assertion in a test.
    aashu16 committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    6645690 View commit details
    Browse the repository at this point in the history
  2. Update simulateKeyInput when chars are selected

    * Add a workaround to handle cases where `input.selectionStart !=
      input.selectionEnd` by first removing the selected text in the input
      and then using `user.keyboard` to type the key pressed.
    aashu16 committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    708dd27 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    56ced22 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9f23988 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2024

  1. Update CI action

    * Update node version.
    * Use the latest versions of setup-node and checkout actions.
    * Use `--frozen-lockfile` flag when running `yarn install`.
    * Update script to run the new test suite.
    aashu16 authored and s-yadav committed Apr 28, 2024
    Configuration menu
    Copy the full SHA
    91e8fd2 View commit details
    Browse the repository at this point in the history

Commits on May 11, 2024

  1. fix build

    s-yadav committed May 11, 2024
    Configuration menu
    Copy the full SHA
    e7b1af4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8c0b056 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2024

  1. - Update test dependencies

    - Added better way to find change range which fixes  issue around duplicate subsequent characters giving incorrect change range.
    - Remove findChangedIndex util, as it wasn't used anywhere.
    - Fix simulateKeyInput util
    - Fix incorrect test
    - Fix issue when complete text is selected and replaced with new value in pattern format. It was it was incorrectly pasting value.
    s-yadav committed May 12, 2024
    Configuration menu
    Copy the full SHA
    a44af92 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    824bcd9 View commit details
    Browse the repository at this point in the history
  3. Remove .only from test.

    s-yadav committed May 12, 2024
    Configuration menu
    Copy the full SHA
    ca97625 View commit details
    Browse the repository at this point in the history