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

New improve test coverage #102

Merged
merged 29 commits into from
Oct 3, 2024
Merged

New improve test coverage #102

merged 29 commits into from
Oct 3, 2024

Conversation

dukenuken09
Copy link
Contributor

@dukenuken09 dukenuken09 commented Sep 23, 2024

Description

Improve test coverage of webforms-ui

Changes

  • Correct warnings alerts of the test (except those that depende on the react-beautiful-dnd extern library)
  • Enable and complete tests cases for different values of is30ContractEnabled flag
  • Improve test coverage (expand test cases) for all forms
  • Mock API responses (intercept)
  • Test normalized forms function
  • Add github action that checks for library updates

Checklist

Justify any unchecked point:

  • Changed code is covered by tests.
  • Relevant changes are explained in the "Unreleased" section of the CHANGES.md file
  • That section includes "Upgrade notes" with any config, dependency or deploy tweek needed on development and server setups. -> Not needed
  • Changes on the setup process (development, testing, production) have been updated in the proper documentation -> Need to change _paq to _mtm to run on local (for App.jsx, Contract.jsx and Member.jsx files). It will be discussed in a meeting with the whole team to determine to do address it.

Copy link

vercel bot commented Sep 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
webforms-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 10:01am

"invalidCups": "ES9803463008824117ZQ",
"validCups": "ES0029874572863299XP",
"invalidCups": "ES0029874572863299XP",
"validCups": "ES0022458494204838TJES",
Copy link
Member

@vokimon vokimon Sep 25, 2024

Choose a reason for hiding this comment

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

Este CUPS no es valido. Los dos ultimos digitos han de ser un numero y una letra, no dos letras. Normalmente un numero bajo 0, 1 o 2, y las legras F o P. Lo mas comun 0F. Seguramente si lo usamos para algo, en la validación remota, fallara.

src/App.jsx Outdated
@@ -159,7 +159,7 @@ const App = (props) => {

<Route
path="/:language/contract-20/"
element={<Contract is30ContractEnabled={false} {...props} />}
element={<Contract {...{...props,is30ContractEnabled:false}} />}
Copy link
Member

Choose a reason for hiding this comment

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

Why? It is way harder to understand. Maybe because props overrided is30ContractEnabled? What about just changing the order?

@dukenuken09 dukenuken09 merged commit 1d3bcac into master Oct 3, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants