
* reference type cypress working * refactor * remove screenshots * add reference * add slash marker * run tests based on shop version * fix run tests based on shop version * fix run tests based on shop version * change base url to localhost * fix plugins * fix plugins * fix plugins * fix plugins * fix plugins * fix plugins * fix yml * fix yml * chage file names * fix files names * fix broken imports add checking for errors in grpah responses * fix broken imports add checking for errors in grpah responses * update jest * fix snapshot
19 lines
520 B
JavaScript
19 lines
520 B
JavaScript
const { softExpect } = chai;
|
|
|
|
export function expectCorrectDataInAttribute(
|
|
attribute,
|
|
{
|
|
attributeName,
|
|
attributeType,
|
|
entityType = null,
|
|
unit = null,
|
|
valueRequired = true
|
|
}
|
|
) {
|
|
softExpect(attribute.name).to.eq(attributeName);
|
|
softExpect(attribute.slug).to.eq(attributeName);
|
|
softExpect(attribute.inputType).to.eq(attributeType);
|
|
softExpect(attribute.entityType).to.eq(entityType);
|
|
softExpect(attribute.unit).to.eq(unit);
|
|
softExpect(attribute.valueRequired).to.eq(valueRequired);
|
|
}
|