Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #422 from CSCfi/dev
Browse files Browse the repository at this point in the history
Release v1.5.3
  • Loading branch information
teemukataja authored May 13, 2022
2 parents 7cf7762 + deef9f4 commit d94f1c2
Show file tree
Hide file tree
Showing 12 changed files with 566 additions and 729 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/ListingsSearch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("Listings search", () => {
cy.get(".navbar-burger").click();
cy.get('[data-testid="historyButton"]').click();
cy.contains(
"results?searchInInput=biosamples&id=SAMN03283350&searchByInput=individuals"
"results?searchType=listing&searchInInput=biosamples&id=SAMN03283350&searchByInput=individuals"
);
});
});
17 changes: 17 additions & 0 deletions cypress/integration/SearchFiltering.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
describe("Search filtering", () => {
it("successfully loads", () => {
cy.visit("/");
cy.get("#v2Switch").click();
cy.get('[data-testid="beaconListing"]').click();
cy.contains("Listing search");
});
it("can filter results", () => {
cy.get('[data-testid="inInput"]').select("biosamples");
cy.get('[data-testid="searchTest"]').click();
cy.contains("Display 3 result(s)");
cy.contains("td", "myopia").parent("tr").children().first().click();
cy.contains("id: HP:0000545").click();
cy.get('[data-testid="filterButton"]').click();
cy.contains("Display 1 result(s)");
});
});
Loading

0 comments on commit d94f1c2

Please sign in to comment.