Fix statement in pages test (#4093)
This commit is contained in:
parent
91ba67852b
commit
4a66b5f625
1 changed files with 5 additions and 5 deletions
|
@ -131,14 +131,14 @@ describe("Tests for pages", () => {
|
||||||
expect(page.attributes[0].values[0].inputType).to.eq(
|
expect(page.attributes[0].values[0].inputType).to.eq(
|
||||||
attributeKey,
|
attributeKey,
|
||||||
);
|
);
|
||||||
if (attributeType !== "BOOLEAN") {
|
if (attributeKey === "BOOLEAN") {
|
||||||
expect(page.attributes[0].values[0].name).to.eq(
|
|
||||||
attributeValuesOnPage[attributeType].toString(),
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
expect(page.attributes[0].values[0].name).to.includes(
|
expect(page.attributes[0].values[0].name).to.includes(
|
||||||
"Yes".toString(),
|
"Yes".toString(),
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
expect(page.attributes[0].values[0].name).to.eq(
|
||||||
|
attributeValue.toString(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue