Per the title. The test will need fixtures for both getting (GET) and saving (POST) the template.
This can be a very complex test as all fields must be checked for accepting (and remembering) proper input and not accepting incorrect values too. The generated JSON that is sent via POST on saving must also be verified to conform to what is expected to change by the simulated edits. For this reason, it is advisable to create this test in small steps in different pull requests, each adding only relatively small part of the complete testing steps.
Per the title. The test will need fixtures for both getting (GET) and saving (POST) the template.
This can be a very complex test as all fields must be checked for accepting (and remembering) proper input and not accepting incorrect values too. The generated JSON that is sent via POST on saving must also be verified to conform to what is expected to change by the simulated edits. For this reason, it is advisable to create this test in small steps in different pull requests, each adding only relatively small part of the complete testing steps.