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

Adding testing to the library #9

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Adding testing to the library #9

merged 3 commits into from
Jul 31, 2024

Conversation

alsoto25
Copy link
Contributor

Description

We're looking into adding robust testing to the library to give all contributors more confidence that the changes being made are not breaking anything.

  • Installed and added configuration for Playwright.
  • Made a slight typing change to the configuration on the constructor to more accurately mark required and optional fields.
  • Added base file structure for all tests we would ideally have.
  • Added Github Action to run tests when a PR is created and when a PR is merged.

Testing

The added tests were thoroughly tested using Playwright's UI:

image

@alsoto25 alsoto25 added the enhancement New feature or request label Jul 19, 2024
@alsoto25 alsoto25 self-assigned this Jul 19, 2024
@@ -0,0 +1,5 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can add these files until we have actual tests there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea to adding these is so if other people come in and help, they don't have to take the decision on how to approach testing, which could lead to different people having different approaches in mind and then having to do extra work with the consolidation of tests and maybe conflicts.

This way each person could potentially just work on a single file without stepping on anyone elses' toes and the standard architecture of the tests is already there.

Copy link

@wiremanb wiremanb left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@jdziat jdziat left a comment

Choose a reason for hiding this comment

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

Just have a quick question about playwright

Copy link

@jdziat jdziat left a comment

Choose a reason for hiding this comment

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

LGTM

@alsoto25 alsoto25 merged commit 4ffcce2 into ltvco:main Jul 31, 2024
3 checks passed
alsoto25 pushed a commit to alsoto25/form-validation-ltv-public that referenced this pull request Oct 29, 2024
commit f640879
Author: Brian Salazar <bsalazarsanchez06@gmail.com>
Date:   Tue Oct 22 10:32:50 2024 -0600

    [SWAT-4099][Form Validation Open Source] Fix in isFieldValid (ltvco#16)

    * fix to send the correct value

    * 1.0.2

    ---------

    Co-authored-by: Brian Salazar <briansalazar@Brians-MacBook-Pro.local>

commit 4d02934
Author: Brian Salazar <bsalazarsanchez06@gmail.com>
Date:   Tue Oct 22 09:19:29 2024 -0600

    [SWAT-4097] Remove all test related code (ltvco#15)

    * remove all test related code

    * remove the fix to apply it in a separate PR

    ---------

    Co-authored-by: Brian Salazar <briansalazar@Brians-MacBook-Pro.local>

commit a51dfbe
Author: Md Mohsin <77264192+Emkay2309@users.noreply.github.com>
Date:   Tue Oct 15 19:43:24 2024 +0530

    Added pull_request_template and created  issue templates for bug reports and feature_requests  (ltvco#12)

commit 643c385
Merge: 4ffcce2 7015f93
Author: Ale Soto <37157321+alsoto25@users.noreply.github.com>
Date:   Fri Sep 13 12:47:24 2024 -0600

    Merge pull request ltvco#11 from AnthonyGriffith/ag_public-methods-tests

commit 7015f93
Author: Anthony Griffith <agriffith@ltvco.com>
Date:   Wed Sep 11 11:42:20 2024 -0600

    add tests to all methods

commit 282d18c
Author: Anthony Griffith <agriffith@ltvco.com>
Date:   Wed Sep 11 11:40:50 2024 -0600

    fix method return

    the function was returning the opposite of what was intended

commit 4ffcce2
Merge: edbc384 157f604
Author: Ale Soto <37157321+alsoto25@users.noreply.github.com>
Date:   Wed Jul 31 09:55:47 2024 -0600

    Merge pull request ltvco#9 from alsoto25/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants