From 21af81b28334523ed0d130633a534c1b592ae44f Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Fri, 28 Jul 2023 00:56:30 +0100 Subject: [PATCH] Update cypress tests --- webapp/cypress/e2e/editPage.cy.js | 2 -- webapp/cypress/e2e/sampleTablePage.cy.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/webapp/cypress/e2e/editPage.cy.js b/webapp/cypress/e2e/editPage.cy.js index a95e10907..5bc9fb5c7 100644 --- a/webapp/cypress/e2e/editPage.cy.js +++ b/webapp/cypress/e2e/editPage.cy.js @@ -58,7 +58,6 @@ describe("Edit Page", () => { it("Checks editing the sample edit page", () => { cy.findByText("editable_sample").click(); - cy.findByLabelText("Sample ID").should("have.value", "editable_sample"); cy.findByLabelText("Name").should("have.value", "This is a sample name"); cy.findByLabelText("Chemical formula").type("NaCoO2", { force: true }); @@ -212,7 +211,6 @@ describe("Edit Page", () => { it("Add some blocks to the sample and checks unsaved warning behavior", () => { cy.findByText("editable_sample").click(); - cy.findByLabelText("Sample ID").should("have.value", "editable_sample"); cy.findByLabelText("Name").should("have.value", "This is a sample name"); cy.findByText("Add a block").click(); diff --git a/webapp/cypress/e2e/sampleTablePage.cy.js b/webapp/cypress/e2e/sampleTablePage.cy.js index 085256aae..8fe08d353 100644 --- a/webapp/cypress/e2e/sampleTablePage.cy.js +++ b/webapp/cypress/e2e/sampleTablePage.cy.js @@ -108,7 +108,6 @@ describe("Sample table page", () => { it("Checks the sample edit page", () => { cy.findByText("12345678910").click(); - cy.findByLabelText("Sample ID").should("have.value", "12345678910"); cy.go("back"); cy.findByText("12345678910"); cy.findByText("This is a sample name"); @@ -186,7 +185,6 @@ describe("Sample table page", () => { // check one of the pages to make sure it is generating properly cy.findByText("122.rwre").click(); - cy.findByLabelText("Sample ID").should("have.value", "122.rwre"); cy.go("back"); more_ids.map((id) => verifySample(id)); @@ -283,7 +281,6 @@ describe("Advanced sample creation features", () => { it("checks the edit page of the copied sample", () => { cy.findByText("testBcopy").click(); - cy.findByLabelText("Sample ID").should("have.value", "testBcopy"); cy.findByLabelText("Name").should("have.value", "COPY OF the second test sample"); cy.findByText("this is a description of testB."); cy.findByText("a comment is added here."); @@ -319,7 +316,6 @@ describe("Advanced sample creation features", () => { it("checks the edit page of the copied sample with components", () => { cy.findByText("testBcopy_copy").click(); - cy.findByLabelText("Sample ID").should("have.value", "testBcopy_copy"); cy.findByLabelText("Name").should("have.value", "COPY OF COPY OF the second test sample"); cy.findByText("this is a description of testB."); cy.findByText("a comment is added here.");