Skip to content

Some suggestions for examples #161

@rafaelss95

Description

@rafaelss95
  • Replace fireEvent.blur(htmlElement) by htmlElement.blur() (https://testing-library.com/docs/guide-events/#focusblur);
  • Replace findBy*/getBy*/queryBy* by screen.*;
  • Add more examples in forms (mainly in material version):
    • Tests using mat-error for each form-field instead of a block of errors;
    • Tests with form-friendly components, like checkbox, datepicker, chips, slider, button-toggle, autocomplete.

Note that if you like the idea, I can submit a PR ASAP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions