Skip to content

Commit

Permalink
Add teardown that removes all samples after each cypress spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jul 28, 2023
1 parent cc9c6e6 commit 1d7f198
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/cypress/e2e/batchSampleFeature.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ describe("Batch sample creation", () => {
verifySample("test101_unique2");
});

it("deletes the rest of the samples (cleanup)", () => {
after("deletes the rest of the samples (cleanup)", () => {
[
"baseA",
"baseB",
Expand Down
2 changes: 1 addition & 1 deletion webapp/cypress/e2e/editPage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ describe("Edit Page", () => {
cy.get("[data-testid=sample-table] tr:nth-of-type(3) > td:nth-of-type(8)").contains(2); // 2 blocks are present
});

it("cleanup: delete the samples", () => {
after("cleanup: delete the samples", () => {
cy.findByText("editable_sample")
.parents("tr")
.within(() => {
Expand Down
2 changes: 1 addition & 1 deletion webapp/cypress/e2e/sampleTablePage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ describe("Advanced sample creation features", () => {
cy.get("#synthesis-information tbody tr:nth-of-type(3) input").eq(0).should("have.value", ""); // eq(1) gets the second element that matches
});

it("deletes all samples", () => {
after("deletes all samples", () => {
[
"testB",
"testAcopy",
Expand Down

0 comments on commit 1d7f198

Please sign in to comment.