Closed Sembauke closed 8 months ago
@Nirajn2311, as you wrote the script. Can you confirm what I posted in the OP?
It seems like it is possible to choose files with playwright.
It seems like it is possible to choose files with playwright.
Cool! In that case, what I would do is to add a image file in e2e/helpers directory or somewhere, and use it in the tests. (I have done similar thing in a different test framework, but not sure if it works with playwright)
I also confirmed that our migration script works even with this change in Strapi app. Looks like Strapi is smart enough to handle the relation notation with or without []
. Referred to: https://docs.strapi.io/dev-docs/api/rest/relations
I'm going to merge this PR for now. Let me know or open another PR if you find any problems with the tests I added. Thanks!
Seems like the import script from Ghost does not need to be updated as adding the Single Media type through an API call is the same as one with a type of Multi Media. Meaning, the single media type is able to be send in an array as well.
closes #370 closes #372