-
Notifications
You must be signed in to change notification settings - Fork 24
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
Consolidate front-end types/fixtures and back-end data #3027
Comments
I've evaluated two different approaches for this: (1) Use the existing snapshots of the data returned by the admin_rest_api requests (from the e2e tests) to check concordance with the frontend flow types.
(2) Use the |
Thanks for evaluating this! Maybe we should postpone the issue until (2) becomes feasible?
Alternatively, we could make it more explicit and independent of the snapshots by writing code like: const createdExplorational = await api.createExplorational(dataSetName, "skeleton", false);
writeFlowCheckingFile(createdExplorational, "APIAnnotationType");
t.snapshot(replaceVolatileValues(createdExplorational), {
id: "annotations-createExplorational",
}); Then, we wouldn't need to fight with volatile values or with rewriting snapshots.
Yeah, for testing the back-end routes that should be enough. Might be a good chance to ensure that all backend types are contained in this file. Overall, I'm not too sure about the benefit/cost ratio, though. Maybe we should discuss this in person tomorrow :) |
Sounds good, let's discuss this in person and I'll update this issue afterwards :) |
We agreed on trying |
No description provided.
The text was updated successfully, but these errors were encountered: