saleor-dashboard/cypress/support/api/utils/attributes/checkAttributeData.js
Karolina Rakoczy fd7813692a
Change way of tagging tests, add stable tag (#2102)
* change tags in tests

* change tags in tests

* add finde-names

* correct critical tag

* fix navigation

* remove comments

* fix config

* fix baseUrl port
2022-06-27 11:30:51 +02:00

17 lines
466 B
JavaScript

export function expectCorrectDataInAttribute(
attribute,
{
attributeName,
attributeType,
entityType = null,
unit = null,
valueRequired = true
}
) {
expect(attribute.name).to.eq(attributeName);
expect(attribute.slug).to.eq(attributeName);
expect(attribute.inputType).to.eq(attributeType);
expect(attribute.entityType).to.eq(entityType);
expect(attribute.unit).to.eq(unit);
expect(attribute.valueRequired).to.eq(valueRequired);
}