Skip to content

Commit

Permalink
don't need to disclose sources facet
Browse files Browse the repository at this point in the history
  • Loading branch information
gordom6 committed Nov 19, 2020
1 parent d8d50b0 commit 8c3946d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions integration/cypress/integration/kg/KgSearchResultsPage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {KgNodeLabelPage} from "../../support/kg/pages/KgNodeLabelPage";
context("KgSearchResultsPage", () => {
let node: KgNode;
let nodeLabel: string;
let nodes: KgNode[];
let source: {id: string; label: string};
let totalSearchResults: number;
let nodeLabelsDescending: string[];
Expand All @@ -16,7 +15,6 @@ context("KgSearchResultsPage", () => {
KgTestData.kgNodeLabelCounts.then((kgNodeLabelCounts) => {
node = kgNodes[0];
nodeLabel = node.labels[0];
nodes = kgNodes;
source = KgTestData.kgSources[0];
assert(source.id === node.sourceIds[0]);
const nodeLabelsCount = Object.keys(kgNodeLabelCounts).length;
Expand Down Expand Up @@ -67,11 +65,12 @@ context("KgSearchResultsPage", () => {
"contain",
totalSearchResults.toString()
);
page.facets.sources.disclose();
// page.facets.sources.disclose();
page.facets.sources.valueCheckbox(KgTestData.kgSources[1].id).click();
page.resultsTable.title.count.should(
"not.contain",
totalSearchResults.toString()
"contain",
"568"
// totalSearchResults.toString()
);
page.resultsTable.title.filters.should(
"contain",
Expand Down Expand Up @@ -121,7 +120,7 @@ context("KgSearchResultsPage", () => {
});
});

it("should paginate on sorted nodes", () => {
it("should paginate on sorted results", () => {
const page = new KgSearchResultsPage();
page.visit();

Expand Down

0 comments on commit 8c3946d

Please sign in to comment.