Open snez opened 3 years ago
Hi @snez. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
@snez Ran into this as well trying to set product custom attribute on product test entity. Using custom_attribute_array
instead of custom_attribute
for type worked in my case for a "yes/no" custom attribute
<entity name="SubscriptionProduct" extends="SimpleProduct">
<data key="name">Simple Subscription</data>
<data key="sku" unique="suffix">simple-trial-2</data>
<data key="urlKey" unique="suffix">simple-trial-2</data>
- <requiredEntity type="custom_attribute">SubscriptionIsEnabled</requiredEntity>
+ <requiredEntity type="custom_attribute_array">SubscriptionIsEnabled</requiredEntity>
</entity>
There seems to be no documentation on how to set custom product attributes through entity data. I searched through the example tests and tried a few things to no avail.
Preconditions
Steps to reproduce
<before>
block of a SuiteExpected result
Actual result