Fix statement in pages test (#4093)

This commit is contained in:
Anna Szczęch 2023-08-22 09:53:37 +03:00 committed by GitHub
parent 91ba67852b
commit 4a66b5f625
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),
);
} }
}); });
}); });