getodk / central-frontend

Vue.js based frontend for ODK Central
https://docs.getodk.org/central-intro/
Apache License 2.0
32 stars 56 forks source link

Improve how lastEntity is used in tests #1005

Closed matthew-white closed 1 month ago

matthew-white commented 1 month ago

As part of #1004, I added a new property to testData.extendedForms (publicLinks). I randomly noticed that testData.extendedForms has the property lastEntity, but I don't think that Backend actually returns that property. This PR removes lastEntity from testData.extendedForms. It also makes a few other changes related to lastEntity, mostly making it more consistent with other testData properties. See the commit message for details.

What has been done to verify that this works as intended?

Tests continue to pass.

Why is this the best possible solution? Were any other approaches considered?

I think it's good to try to make testData as similar to Backend as possible. Where it's easy to do, I also think it's nice to try to make testData internally consistent.

Before submitting this PR, please make sure you have: