core
core copied to clipboard
[full-ci] Test feat editable public link file 20220805
Test code and adjustments for #40264
This is rebased to current master so as to get some recent enhancements to acceptance test code that I did in the last few days.
Note: the existing acceptance test code has different ways of remembering the details of public links created by an API request and with the webUI.
API requests provide lots of detail in the response, so the tests can save all of it, and thus get back whatever identifying information they need in later Then
steps.
But when creating with the webUI, we don't have easy access to the API request-response that the webUI makes. So we save what data we can gather from the UI itself.
Much of the test code has 2 paths for this stuff - test steps that work with the saved API response data, and other test steps that work with the saved webUI data. I patched things up a bit so that some functions are smart enough to look in both places for the information they need. Actually it would be good to refactor this test code so that it works more cleanly, but that is a job for another day. I don't want to add a big refactoring to this PR! I will raise a separate issue for refactoring.
This has been cherry-picked into #40264