Skip to content

Commit

Permalink
Merge branch 'develop' into TASk-4847
Browse files Browse the repository at this point in the history
Signed-off-by: gpveronica <[email protected]>
  • Loading branch information
gpveronica committed Oct 30, 2023
2 parents d0c7538 + 1b6a48a commit 1f4bf29
Show file tree
Hide file tree
Showing 16 changed files with 160 additions and 1,465 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/iva/variant-interpreter-grid-cancer-cnv.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ context("Variant Interpreter Grid Cancer CNV", () => {

it("should display Cohort Stats (Population Frequencies) tooltip", () => {
cy.get("tbody tr:first > td")
.eq(8)
.eq(10)
.within(() => {
cy.get("a")
.trigger("mouseover");
Expand All @@ -177,7 +177,7 @@ context("Variant Interpreter Grid Cancer CNV", () => {
.should("be.visible");
});

it("should display reference population frequencies tooltip", () => {
it.skip("should display reference population frequencies tooltip", () => {
cy.get("tbody tr:first > td")
.eq(9)
.within(() => {
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/iva/variant-interpreter-grid-cancer.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ context("Variant Interpreter Grid Cancer", () => {

it("should display cohort stats (population frequencies) tooltip", () => {
cy.get("tbody tr:first > td")
.eq(8)
.eq(10)
.within(() => {
cy.get("a").trigger("mouseover");
});
Expand All @@ -220,7 +220,7 @@ context("Variant Interpreter Grid Cancer", () => {

it("should reference population frequencies tooltip", () => {
cy.get("tbody tr:first > td")
.eq(9)
.eq(11)
.within(() => {
cy.get("a")
.trigger("mouseover");
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/iva/variant-interpreter-grid-germline.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ context("Variant Interpreter Grid Germiline", () => {

it("should display cohort stats (Population Frequencies) tooltip", () => {
cy.get("tbody tr:first > td")
.eq(8)
.eq(9)
.within(() => {
cy.get("a")
.trigger("mouseover");
Expand All @@ -185,7 +185,7 @@ context("Variant Interpreter Grid Germiline", () => {

it("should display reference population frequencies tooltip", () => {
cy.get("tbody tr:first > td")
.eq(9)
.eq(10)
.within(() => {
cy.get("a")
.trigger("mouseover");
Expand All @@ -196,7 +196,7 @@ context("Variant Interpreter Grid Germiline", () => {

it("should display ACMG Prediction (Classification) tooltip", () => {
cy.get("tbody tr:first > td")
.eq(14)
.eq(15)
.within(() => {
cy.get("a")
.trigger("mouseover");
Expand Down
20 changes: 19 additions & 1 deletion src/sites/iva/conf/browsers.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,25 @@ const INTERPRETER_SETTINGS = {
],
},
{
id: "methods"
id: "methods",
items: [
{
type: "SINGLE",
methods: [
{id: "exomiser"},
],
},
{
type: "FAMILY",
methods: [
{id: "exomiser"},
],
},
{
type: "CANCER",
methods: [],
},
],
},
{
id: "variant-browser",
Expand Down
16 changes: 2 additions & 14 deletions src/webcomponents/commons/grid-commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
import UtilsNew from "../../core/utils-new.js";
import CustomActions from "./custom-actions.js";
import ExtensionsManager from "../extensions-manager.js";
import CatalogGridFormatter from "./catalog-grid-formatter";


export default class GridCommons {

Expand Down Expand Up @@ -273,19 +271,9 @@ export default class GridCommons {
}
}

isColumnVisible(colName) {
isColumnVisible(colName, parentName) {
if (this.config.columns?.length > 0) {
// return this.config.columns.some(column => column === colName || column.split(":")[0] === colName);

// let found = false;
// for (const column of this.config.columns) {
// if (column === colName || column.split(":")[0] === colName) {
// found = true;
// }
// }
// return found;

return this.config.columns.includes(colName);
return this.config.columns.includes(colName) || this.config.columns.includes(parentName);
} else {
// Columns are visible by default.
return true;
Expand Down
Empty file.
Empty file.
Loading

0 comments on commit 1f4bf29

Please sign in to comment.