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

Fix Add Column to GeneList Tour and Cypress Test #158

Merged
merged 3 commits into from
Sep 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 8 additions & 8 deletions dist/tours/AddColumnToGeneListTour.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tours/AddColumnToGeneListTour.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions src/tours/AddColumnToGeneListTour.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class AddColumnToGeneListTour {
},

{
selector: '.modal-body form > .col-sm-auto:nth-child(1) .row:nth-child(1) div:nth-child(1) select',
selector: '.modal-body form > .col-sm-12:nth-child(1) .row:nth-child(1) div:nth-child(1) select',
html: `<p>First, we need to define the subset of cell lines which we want to aggregate.</p>
<p>For the filter attribute we select <i>'Tumor Type'</i> &hellip;</p>`,
placement: 'centered',
Expand All @@ -210,31 +210,31 @@ export class AddColumnToGeneListTour {
},

{
selector: '.modal-body form > .col-sm-auto:nth-child(1) .row:nth-child(1) .row:nth-child(1) > div:nth-child(2) .select2',
selector: '.modal-body form > .col-sm-12:nth-child(1) .row:nth-child(1) .row:nth-child(1) > div:nth-child(2) .select2',
html: `&hellip; and for the filter value we select <i>'breast carcinoma'</i>.`,
placement: 'centered',
preAction: () => TourUtils.waitFor('.modal-body form > .col-sm-auto:nth-child(1) .row:nth-child(1) .row:nth-child(1) > div:nth-child(2) .select2').then(() => TourUtils.wait(250)),
preAction: () => TourUtils.waitFor('.modal-body form > .col-sm-12:nth-child(1) .row:nth-child(1) .row:nth-child(1) > div:nth-child(2) .select2').then(() => TourUtils.wait(250)),
postAction: () => {
TourUtils.setValueAndTrigger('.modal-body form > .col-sm-auto:nth-child(1) .row:nth-child(1) .row:nth-child(1) > div:nth-child(2) select', 'breast carcinoma', 'change');
TourUtils.setValueAndTrigger('.modal-body form > .col-sm-12:nth-child(1) .row:nth-child(1) .row:nth-child(1) > div:nth-child(2) select', 'breast carcinoma', 'change');
}
},

{
selector: '.modal-body form > .col-sm-auto:nth-child(2) .row:nth-child(1) .select2',
selector: '.modal-body form > .col-sm-12:nth-child(2) .row:nth-child(1) .select2',
placement: 'centered',
html: `As data type, we choose <i>'Relative Copy Number'</i> &hellip;`,
postAction: () => {
TourUtils.setValueAndTrigger('.modal-body form > .col-sm-auto:nth-child(2) select', 'copy_number-relativecopynumber', 'change');
TourUtils.setValueAndTrigger('.modal-body form > .col-sm-12:nth-child(2) select', 'copy_number-relativecopynumber', 'change');
}
},

{
selector: '.modal-body form > .col-sm-auto:nth-child(3) select',
selector: '.modal-body form > .col-sm-12:nth-child(3) select',
placement: 'centered',
html: `<p>&hellip; and as type of aggregation we choose <i>'Average'</i></p>
<p>FYI: other types of aggregation are, for instance, <i>'Min'</i>, <i>'Max'</i>, <i>'Median'</i>, <i>'Count'</i>, and <i>'Boxplot'</i>.`,
postAction: () => {
TourUtils.setValueAndTrigger('.modal-body form > .col-sm-auto:nth-child(3) > select', 'avg', 'change');
TourUtils.setValueAndTrigger('.modal-body form > .col-sm-12:nth-child(3) > select', 'avg', 'change');
}
},

Expand Down