diff --git a/webapp/cypress/component/EquipmentTableTest.cy.jsx b/webapp/cypress/component/EquipmentTableTest.cy.jsx index fbb89df0f..905e6a1a2 100644 --- a/webapp/cypress/component/EquipmentTableTest.cy.jsx +++ b/webapp/cypress/component/EquipmentTableTest.cy.jsx @@ -104,4 +104,30 @@ describe("EquipmentTable Component Tests", () => { cy.get("td").eq(5).find(".avatar").should("have.length", 2); }); }); + + it("renders the component FormattedItemName", () => { + cy.get(".p-datatable-tbody tr") + .eq(0) + .within(() => { + cy.get("td").eq(1).find(".formatted-item-name").should("exist"); + }); + cy.get(".p-datatable-tbody tr") + .eq(1) + .within(() => { + cy.get("td").eq(1).find(".formatted-item-name").should("exist"); + }); + }); + + it("renders the component Creators", () => { + cy.get(".p-datatable-tbody tr") + .eq(0) + .within(() => { + cy.get("td").eq(5).find(".avatar").should("exist"); + }); + cy.get(".p-datatable-tbody tr") + .eq(1) + .within(() => { + cy.get("td").eq(5).find(".avatar").should("exist"); + }); + }); }); diff --git a/webapp/cypress/component/StartingMaterialTableTest.cy.jsx b/webapp/cypress/component/StartingMaterialTableTest.cy.jsx index 1e66e62d7..424587abf 100644 --- a/webapp/cypress/component/StartingMaterialTableTest.cy.jsx +++ b/webapp/cypress/component/StartingMaterialTableTest.cy.jsx @@ -109,4 +109,17 @@ describe("StartingMaterialTable Component Tests", () => { cy.get("td").eq(6).should("contain.text", "2"); }); }); + + it("renders the component FormattedItemName", () => { + cy.get(".p-datatable-tbody tr") + .eq(0) + .within(() => { + cy.get("td").eq(1).find(".formatted-item-name").should("exist"); + }); + cy.get(".p-datatable-tbody tr") + .eq(1) + .within(() => { + cy.get("td").eq(1).find(".formatted-item-name").should("exist"); + }); + }); });