You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ideally factories/traits would reflect valid data that we can rely on our tests. Currently we have setup a lot of factories just to fill in some specific spec needs (not guarantying the record is actually valid). This issue is exposed further more since the AGFS fee reform release and the split of the claim submission steps.
We should also considering having data validity for claims for each submission steps and for each stages (e.g draft, submitted, allocated). A lot of the data was "valid" until now mainly because the claim was set with a default "form_step" that required very little data. As an example of why that's an issue, creating a factory claim with state submitted (which is supposed to contain ALL the data required for that claim) was being created without any validations errors, since the only checks it was performing were related with the case details step.
Not exhaustively here's a list of some of them that are not considered valid by FactoryBot itself:
Ideally factories/traits would reflect valid data that we can rely on our tests. Currently we have setup a lot of factories just to fill in some specific spec needs (not guarantying the record is actually valid). This issue is exposed further more since the AGFS fee reform release and the split of the claim submission steps.
We should also considering having data validity for claims for each submission steps and for each stages (e.g draft, submitted, allocated). A lot of the data was "valid" until now mainly because the claim was set with a default "form_step" that required very little data. As an example of why that's an issue, creating a factory claim with state submitted (which is supposed to contain ALL the data required for that claim) was being created without any validations errors, since the only checks it was performing were related with the case details step.
Not exhaustively here's a list of some of them that are not considered valid by
FactoryBot
itself:The text was updated successfully, but these errors were encountered: