Skip to content

Commit

Permalink
Update cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jul 28, 2023
1 parent ff6b57c commit 21af81b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions webapp/cypress/e2e/editPage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down Expand Up @@ -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();
Expand Down
4 changes: 0 additions & 4 deletions webapp/cypress/e2e/sampleTablePage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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.");
Expand Down Expand Up @@ -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.");
Expand Down

0 comments on commit 21af81b

Please sign in to comment.