Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new onboarding tours #200

Merged
merged 49 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
384e09f
add data-testid
dvflorianengertsberger Nov 30, 2021
e464ad3
add id for dataset searchbox
dvvanessastoiber Dec 13, 2021
5879b89
add data-testid to react select components
dvflorianengertsberger Jan 4, 2022
5a31382
Merge remote-tracking branch 'origin/develop' into cypress-testing
dvvanessastoiber Jan 17, 2022
452b83e
fix lint
dvvanessastoiber Jan 17, 2022
d81f7a9
fix react select error
dvflorianengertsberger Jan 18, 2022
5a28b07
Merge remote-tracking branch 'origin/develop' into cypress-testing
dvvanessastoiber Mar 22, 2022
761c42f
update dist
dvvanessastoiber Mar 22, 2022
d22cb38
Merge remote-tracking branch 'origin/develop' into cypress-testing
dvvanessastoiber May 30, 2022
caec0d4
update dist
dvvanessastoiber May 30, 2022
e71f24e
rename for constistency
dvvanessastoiber Jun 7, 2022
617bc8c
Merge remote-tracking branch 'origin/develop' into cypress-testing
dvvanessastoiber Jun 21, 2022
3946d4e
update dist
dvvanessastoiber Jun 21, 2022
b944ee0
Merge remote-tracking branch 'origin/develop' into cypress-testing
dvvanessastoiber Jun 30, 2022
ee11bbc
Fix typings
thinkh Jun 30, 2022
fbc855a
add index.js
dvvanessastoiber Jul 19, 2022
2867237
fix setup
dvvanessastoiber Jul 19, 2022
e0d7459
update imports and function calls
dvvanessastoiber Jul 20, 2022
2fd228f
update video
dvvanessastoiber Jul 22, 2022
1e07eb1
Refactored cy related files for Cypress v10
dvmichaelpeterseil Aug 9, 2022
992a58d
Test Duplicant Tour
dvmichaelpeterseil Aug 16, 2022
de915c9
Halfway with AssessBCCellLines tour
dvmichaelpeterseil Aug 22, 2022
1443bda
Almost done AssessBCCellLines tour
dvmichaelpeterseil Aug 22, 2022
3f9ca9f
Merge remote-tracking branch 'origin/develop' into sorry_cypress_testing
dvmichaelpeterseil Aug 22, 2022
ff6fb0e
Merge remote-tracking branch 'origin/sorry_cypress_testing' into dvMi…
dvmichaelpeterseil Aug 22, 2022
f23554c
Update Dist
dvmichaelpeterseil Aug 22, 2022
5eab43a
Fixed Hidden Modal Bug
dvmichaelpeterseil Aug 29, 2022
f52de57
AssessBCCellLines Tour Complete (Unpolished)
dvmichaelpeterseil Aug 30, 2022
38fbf9e
AssessBCCellLine Tour Complete (Polished)
dvmichaelpeterseil Sep 2, 2022
cbfdd78
Prep PredictionTP53Tour and slight refactoring
dvmichaelpeterseil Sep 2, 2022
9efaeff
Updated Tour2
dvmichaelpeterseil Sep 5, 2022
d4184c1
Updated Tour2
dvmichaelpeterseil Sep 5, 2022
01a3229
Nearly complete DrugTargetDiscoveryTour
dvmichaelpeterseil Sep 27, 2022
0372957
Merge remote-tracking branch 'origin/develop' into dvMike/1365_Additi…
dvmichaelpeterseil Feb 15, 2023
3ad9fe0
Update gitignore
dvmichaelpeterseil Feb 15, 2023
bcbf227
Merge remote-tracking branch 'origin/develop' into dvMike/1365_Additi…
dvmichaelpeterseil Mar 13, 2023
c97bf08
Stash Tour Testing
dvmichaelpeterseil Mar 13, 2023
e2efaf6
Updated tours
dvmichaelpeterseil Mar 23, 2023
ebb9ddb
Add dependency
oltionchampari Mar 23, 2023
5fbb05d
Added blockers to stabilize tour
dvmichaelpeterseil Mar 23, 2023
f433320
Merge branch 'dvMike/1365_Additional-Tours' of github.com:Caleydo/tdp…
dvmichaelpeterseil Mar 23, 2023
fb08f9f
Functional completion of the new tours
dvmichaelpeterseil Mar 30, 2023
f3329a9
Shortened names and descriptions for spacing
dvmichaelpeterseil Apr 3, 2023
787e1c0
Updated tour preview images
dvmichaelpeterseil Apr 3, 2023
1b54d1e
Merge branch 'develop' into dvMike/1365_Additional-Tours
oltionchampari Apr 5, 2023
2fad12f
chore: add missing dist files
thinkh Apr 6, 2023
edbcfc1
Minor fixes and improvments
oltionchampari Apr 7, 2023
ba09b7c
Dist
oltionchampari Apr 7, 2023
963e5c2
fix: add hi-res tour preview images
thinkh Apr 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor fixes and improvments
  • Loading branch information
oltionchampari committed Apr 7, 2023
commit edbcfc191ae98b3e3dbcc9cd5b3abba25e7c058d
11 changes: 4 additions & 7 deletions src/tours/AddColumnToGeneListTour.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IStep, TourUtils } from 'tdp_core';
import { openAddColumPanel } from './utils';

export class AddColumnToGeneListTour {
static createTour(): IStep[] {
Expand Down Expand Up @@ -64,7 +65,7 @@ export class AddColumnToGeneListTour {
selector: '.lu-side-panel-wrapper .lu-adder > button',
html: `Additional columns can be added using the plus sign.`,
placement: 'centered',
postAction: TourUtils.clickSelector,
postAction: openAddColumPanel,
},

{
Expand Down Expand Up @@ -133,9 +134,7 @@ export class AddColumnToGeneListTour {
selector: '.lu-search .lu-search-group .lu-search-item',
placement: 'centered',
html: `Now, we want to add two columns containing the copy number information of two specific cell lines. To do so, we open the <i>'Cell Line Score (Single)'</i> dialog`,
preAction: () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
},
preAction: openAddColumPanel,
postAction: () => {
TourUtils.click('.lu-search .lu-search-group .lu-search-item');
TourUtils.toggleClass('.lu-adder.once', 'once', false);
Expand Down Expand Up @@ -180,9 +179,7 @@ export class AddColumnToGeneListTour {
placement: 'centered',
html: `Finally, we want to add an aggregated column containing the mean/average copy number values of all breast cancer cell lines.
To do so, we open the <i>'Cell Line Score (Aggregated)'</i> dialog`,
preAction: () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
},
preAction: openAddColumPanel,
postAction: () => {
TourUtils.click('.lu-search .lu-search-group .lu-search-item:nth-child(2)');
TourUtils.toggleClass('.lu-adder.once', 'once', false);
Expand Down
50 changes: 26 additions & 24 deletions src/tours/AssessBCCellLinesTour.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// import {ToursSection} from 'ordino';
import selectEvent from 'react-select-event';
import { IStep, Tour, TourUtils } from 'tdp_core';
import { IStep, TourUtils } from 'tdp_core';
import { openAddColumPanel, setNextActive } from './utils';

export class AssessBCCellLinesTour {
static createTour(): IStep[] {
Expand All @@ -25,7 +24,7 @@ export class AssessBCCellLinesTour {
datasetTab.querySelector('a').classList.add('hover');
}
},
postAction: () => {
postAction: async () => {
const datasetTab = document.querySelector('ul[data-header="mainMenu"] > li:nth-child(1)') as HTMLElement;
if (!datasetTab.classList.contains('active')) {
datasetTab.querySelector('a').classList.remove('hover');
Expand All @@ -47,7 +46,7 @@ export class AssessBCCellLinesTour {
selector: '[data-testid="normal-chromosome-protein-coding-human-genes-button"]',
html: `The scientists start by loading the list of all protein coding genes for humans.`,
placement: 'centered',
postAction: () => {
postAction: async () => {
return TourUtils.waitFor('.ordino-dataset.genes-dataset .dataset-entry button[title^="Name: normal chromosome protein coding human genes"]').then(
TourUtils.click,
);
Expand All @@ -57,22 +56,23 @@ export class AssessBCCellLinesTour {
{
selector: '.le.le-multi.lineup-engine',
placement: 'centered',
preAction: () => TourUtils.waitFor('.le.le-multi.lineup-engine', Infinity).then(() => TourUtils.wait(2000)),
html: `The information is presented in a tabular format. Additionally to the gene ID, a set of columns containing some basic information is shown by default.`,
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1)', Infinity),
},
{
selector: '.lu-side-panel-wrapper .lu-adder > button',
html: `They begin by adding an additional column, done so by clicking on the plus icon shown here.`,
placement: 'centered',
postAction: TourUtils.clickSelector,
postAction: openAddColumPanel,
},
{
selector: '[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span',
selector: '[data-testid="lu-adder-div"] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span',
html: `They choose to add a column for a single cell line score.`,
placement: 'centered',
postAction: () => {
TourUtils.click('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span');
postAction: async () => {
TourUtils.click('[data-testid="lu-adder-div"] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span');
TourUtils.toggleClass('.lu-adder.once', 'once', false);
return Promise.resolve();
},
},
{
Expand Down Expand Up @@ -102,27 +102,27 @@ export class AssessBCCellLinesTour {
selector: '.le [data-col-id="col8"] .lu-action-sort',
placement: 'centered',
html: `They want to sort by this newly added column, so they click on the sort button in the column header.`,
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) [title="1.83"]', Infinity),
preAction: () => TourUtils.waitFor('.le-tr[data-index="0"] [data-id="col8"].lu-renderer-number', Infinity),
postAction: () => {
TourUtils.click('.le [data-col-id="col8"] .lu-action-sort');
},
},
{
// selector: ['[data-index="0"].le-tr, [data-index="14"].le-tr'], // Bug: It highlights the selectors before waiting for the preAction
selector: ['[data-index="0"].le-tr, [data-index="14"].le-tr'],
placement: 'centered',
html: `After sorting by this column, the analyst observes that about 15 genes on chromosome 17 are affected by a large genomic amplification.`,
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) [title="8.00"]', Infinity),
preAction: () => TourUtils.waitFor('[data-index="0"].le-tr', Infinity).then(() => TourUtils.wait(2000)),
},
{
selector: '.lu-side-panel-wrapper .lu-adder > button',
html: `<p>In order to identify the most relevant of these genes, the analyst adds a column with the Normalized Gene Expression (a measure of activity) for cell line HCC1954</p>
<p><i>Individual steps for adding a column have been skipped this time.</i></p>`,
placement: 'centered',
postAction: () => {
postAction: async () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
TourUtils.click('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span');
TourUtils.toggleClass('.lu-adder.once', 'once', false);
TourUtils.waitFor('.modal.show').then(async () => {
await TourUtils.waitFor('.modal.show').then(async () => {
TourUtils.setValueAndTrigger('.modal.show .select3 input.select2-search__field', 'HCC1954;', 'input');
TourUtils.setValueAndTrigger('.show .col > select', 'expression-tpm', 'change');
await TourUtils.wait(1000);
Expand All @@ -134,7 +134,7 @@ export class AssessBCCellLinesTour {
selector: '.lu-side-panel-wrapper .lu-adder > button',
html: `They also add a column with a Gene Sensitivity Score (a measure of importance for cell survival) for HCC1954.`,
placement: 'centered',
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) [title="5324.86"]', Infinity),
preAction: () => TourUtils.waitFor('.le-tr[data-index="0"] [data-id="col9"].lu-renderer-number', Infinity),
postAction: () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
},
Expand All @@ -159,7 +159,7 @@ export class AssessBCCellLinesTour {
html: `<p>In an effort to improve the depletion score's readability, they decide to invert the linear scaling.</p>
<p>To do this, they click on the three dots for more column options.</p>`,
placement: 'centered',
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) [title="−2.75"]', Infinity),
preAction: () => TourUtils.waitFor('.le-tr[data-index="0"] [data-id="col10"].lu-renderer-number', Infinity),
postAction: TourUtils.clickSelector,
},
{
Expand Down Expand Up @@ -230,7 +230,7 @@ export class AssessBCCellLinesTour {
selector: '.lu-side-panel-wrapper .lu-adder > button',
html: `2. A column with the gene copy number distribution for breast cancer cell lines in boxplot format`,
placement: 'centered',
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) [title="890.37"]', Infinity),
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) [data-id="col11"].lu-renderer-number', Infinity),
postAction: () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
TourUtils.click('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span');
Expand All @@ -255,7 +255,7 @@ export class AssessBCCellLinesTour {
selector: '.lu-side-panel-wrapper .lu-adder > button',
html: `3. A column with the gene amplification frequency (>4) across all breast cancer cell lines`,
placement: 'centered',
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) .lu-renderer-boxplot', Infinity),
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) [data-id="col12"].lu-renderer-boxplot', Infinity),
postAction: () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
TourUtils.click('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span');
Expand Down Expand Up @@ -301,22 +301,24 @@ export class AssessBCCellLinesTour {
postAction: TourUtils.clickSelector,
},
{
selector: '.ids',
selector: '.tdp-view.expressionVsCopyNumber .ids',
html: `Here they observe the direct correlation between copy number and expression of ERBB2.`,
placement: 'centered',
preAction: () => TourUtils.waitFor('.ids').then(() => TourUtils.wait(300)),
preAction: () => TourUtils.waitFor('.tdp-view.expressionVsCopyNumber .ids').then(() => TourUtils.wait(300)),
},
{
selector: '[data-viewid="targetvalidation"]',
preAction: TourUtils.clickSelector,
html: `To find more information, they open the 'Open Targets' detail view &hellip;`,
placement: 'centered',
postAction: TourUtils.clickSelector,
waitFor: () => TourUtils.waitFor('iframe [title="ERBB2"]').then(setNextActive),
},
{
selector: '[data-viewid="pubmed"]',
html: `&hellip; and then the 'PubMed' detail view.`,
placement: 'centered',
postAction: TourUtils.clickSelector,
preAction: TourUtils.clickSelector,
waitFor: () => TourUtils.waitFor('.tdp-view.proxy_view ').then(setNextActive),
},
{
selector: '',
Expand Down Expand Up @@ -378,7 +380,7 @@ export class AssessBCCellLinesTour {
selector: '[data-testid="viewWrapper-1"] .lu-side-panel-wrapper .lu-adder > button',
html: `They now want to add the BRCA gene score columns.`,
placement: 'centered',
postAction: TourUtils.clickSelector,
postAction: openAddColumPanel,
},
{
selector: '[data-testid="viewWrapper-1"] [data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span',
Expand Down
17 changes: 11 additions & 6 deletions src/tours/DrugTargetDiscoveryTour.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// import {ToursSection} from 'ordino';
import { IStep, Tour, TourManager, TourUtils } from 'tdp_core';
import { IStep, TourUtils } from 'tdp_core';
import { openAddColumPanel } from './utils';

export class DrugTargetDiscoveryTour {
static createTour(): IStep[] {
Expand Down Expand Up @@ -89,7 +90,7 @@ export class DrugTargetDiscoveryTour {
html: `As the analyst wants to investigate the TP53 gene, he decides to add a categorical column with the mutation status (mutated vs non mutated).`,
placement: 'centered',
preAction: TourUtils.waitForSelector,
postAction: TourUtils.clickSelector,
postAction: openAddColumPanel,
},
{
selector: '[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span',
Expand Down Expand Up @@ -124,11 +125,12 @@ export class DrugTargetDiscoveryTour {
postAction: TourUtils.clickSelector,
},
{
selector: '.lu-side-panel-wrapper .lu-adder > button',
selector: '[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span',
html: `<p>Additionally, they decide to add a textual column that provides further details about the mutation (if present).</p>
<p>This is done by repeating the same steps to add a column, but choosing "AA Mutation" as the data type this time instead.</p>
<p><i>Individual steps for adding a column have been skipped this time.</i></p>`,
placement: 'centered',
preAction: openAddColumPanel,
postAction: () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
TourUtils.click('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span');
Expand All @@ -150,7 +152,7 @@ export class DrugTargetDiscoveryTour {
selector: '.lu-side-panel-wrapper .lu-adder > button',
html: `They begin by adding a new column.`,
placement: 'centered',
postAction: TourUtils.clickSelector,
postAction: openAddColumPanel,
},
{
selector: '[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span',
Expand Down Expand Up @@ -215,9 +217,10 @@ export class DrugTargetDiscoveryTour {
},
},
{
selector: '.lu-side-panel-wrapper .lu-adder > button',
selector: '[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span',
html: `Similarly, they add a matrix column with all of the individual expression values.`,
placement: 'centered',
preAction: openAddColumPanel,
postAction: async () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
TourUtils.click('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span');
Expand Down Expand Up @@ -362,15 +365,17 @@ export class DrugTargetDiscoveryTour {
placement: 'centered',
},
{
selector: '.lu-side-panel-wrapper .lu-adder > button',
selector: '[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span',
html: `He adds a column with the CDKN2A relative copy number, &hellip;`,
placement: 'centered',
preAction: openAddColumPanel,
postAction: () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
TourUtils.click('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span');
TourUtils.toggleClass('.lu-adder.once', 'once', false);
TourUtils.waitFor('.modal.show').then(() => {
TourUtils.setValueAndTrigger('.modal.show .select3 input.select2-search__field', 'CDKN2A;', 'input');
TourUtils.setValueAndTrigger('.show .col > select', null, 'change'); // clear previous value
TourUtils.setValueAndTrigger('.show .col > select', 'copy_number-relativecopynumber', 'change');
TourUtils.wait(2000).then(() => TourUtils.click('.modal.show .modal-footer button[type=submit]'));
});
Expand Down
30 changes: 17 additions & 13 deletions src/tours/PredictionTP53Tour.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// import {ToursSection} from 'ordino';
import { IStep, Tour } from 'tdp_core';
import { IStep } from 'tdp_core';
import { TourUtils } from 'tdp_core/src/tour/TourUtils';
import selectEvent from 'react-select-event';
import { wideEnoughCat } from 'lineupjs/build/src/renderer/utils';
import { select } from 'lineupjs';
import { openAddColumPanel } from './utils';

export class PredictionTP53Tour {
static createTour(): IStep[] {
Expand Down Expand Up @@ -44,15 +42,17 @@ export class PredictionTP53Tour {
datasetTab.querySelector('a').classList.add('hover');
}
},
postAction: () => {
postAction: async () => {
const datasetTab = document.querySelector('ul[data-header="mainMenu"] > li:nth-child(1)') as HTMLElement;
if (!datasetTab.classList.contains('active')) {
datasetTab.querySelector('a').classList.remove('hover');
datasetTab.querySelector('a').click();
}
return TourUtils.waitFor('.ordino-dataset.tissue-dataset').then(() =>
TourUtils.click('#ordino_dataset_tab > .ordino-scrollspy-nav > a:nth-child(2)'),
);

await TourUtils.waitFor('.ordino-dataset.tissue-dataset').then(async () => {
TourUtils.click('#ordino_dataset_tab > .ordino-scrollspy-nav > a:nth-child(2)');
await TourUtils.wait(1000);
});
},
pageBreak: 'manual',
},
Expand Down Expand Up @@ -90,17 +90,18 @@ export class PredictionTP53Tour {
},
},
{
selector: '[data-testid="add-column-button"]',
selector: '[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span',
html: `<p>Now they add a single gene score for the following:</p>
<p>Gene: TP53<p/>
<p>Data Type: AA Mutated<p/>`,
placement: 'centered',
preAction: openAddColumPanel,
postAction: async () => {
TourUtils.click('[data-testid="add-column-button"]');
await TourUtils.wait(500);
TourUtils.click('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(1) > span');
TourUtils.toggleClass('.lu-adder.once', 'once', false);
TourUtils.waitFor('.modal.show').then(async () => {
await TourUtils.waitFor('.modal.show').then(async () => {
TourUtils.setValueAndTrigger('.modal.show .select3 input.select2-search__field', 'TP53;', 'input');
TourUtils.setValueAndTrigger('.show .col > select', 'mutation-aa_mutated', 'change');
await TourUtils.wait(500);
Expand All @@ -112,7 +113,7 @@ export class PredictionTP53Tour {
selector: '[data-testid="viewWrapper-0"] [data-id="col7"] .lu-action-filter',
html: `They filter out the samples with an unknown TP53 mutation status.`,
placement: 'centered',
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) [data-id="col7"].lu-missing', Infinity),
preAction: TourUtils.waitForSelector,
postAction: async () => {
TourUtils.click('[data-testid="viewWrapper-0"] [data-id="col7"] .lu-action-filter');
await TourUtils.wait(500);
Expand All @@ -122,14 +123,17 @@ export class PredictionTP53Tour {
},
},
{
selector: '.lu-side-panel-wrapper .lu-adder > button',
selector: '[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span',
html: `<p>Next they add an aggregated gene score with the following criteria:</p>
<p>Filter: My Named Sets = TP53 Predictor</p>
<p>Data Type: Expression (TPM)</p>
<p>Aggregation: Average</p>
<p>Compute score only for current sample subset</p>`,
placement: 'centered',
preAction: () => TourUtils.waitFor('.le-tr:nth-of-type(1) [data-id="col7"] [style="background-color: rgb(170, 170, 170);"]', Infinity),
preAction: async () => {
await TourUtils.waitFor('.le-tr:nth-of-type(1) [data-id="col7"] [style="background-color: rgb(170, 170, 170);"]', Infinity);
openAddColumPanel();
},
postAction: async () => {
TourUtils.click('.lu-side-panel-wrapper .lu-adder > button');
TourUtils.click('[data-testid=lu-adder-div] > .lu-search > .lu-search-list > :nth-child(2) > ul > :nth-child(2) > span');
Expand Down
Loading