Skip to content

Commit 5b601fa

Browse files
bprize15calvinlu3jfkonecn
authored
Germline qa (oncokb#1262)
* add gene type badge to variants when searching (oncokb#1240) * Update protein change in header (oncokb#1245) * Show genomic indicators associated with variant instead of gene on variant/cancer type pages (oncokb#1247) * Filter out GIs not associated with variant on variant pages * Add store changes * Remove mechanism of inheritence and hide cancer risk cols (oncokb#1251) * Update clinvar terms (oncokb#1253) * Support inheritance mechanism in genomic indicators (oncokb#1265) * Feat/update routes (oncokb#1263) * update routes to use new gene page * reroute alteration page and tumor type page * update screenshot test url * update mocks * update server urls * update remaining urls * update screenshots * fix hgvsg response * fix hgvsg screenshots * query genome nexus using transcript and not hugo symbol (oncokb#1270) * query genome nexus using transcript and not hugo symbol * address comments * fix screenshot * Show mutation effect when no pathogenicity (oncokb#1273) * fix casing for clinical implications for this biomarker tab (oncokb#1272) * Add gene info table to variant and cancer type pages (oncokb#1274) * Add gene info * Update screenshots * Update table descriptions (oncokb#1275) * Update gi table (oncokb#1277) * Remove mechanism of inheritance conversion to allele state (oncokb#1281) * show coming soon for clinical implications section for germline (oncokb#1280) * Update germline alteration sorting (oncokb#1283) * Update store when alteration link changes (oncokb#1284) * Added v6 news (oncokb#1285) * Fix altertion page link * Added TM to oncokb references in the news * Added Germline Gene Table (oncokb#1287) * Update news (oncokb#1288) * Updated news (oncokb#1289) * Update index.html with new oncokb summary png * Fix/update news (oncokb#1290) * fix news for data releast 6.0 * update screenshots --------- Co-authored-by: Calvin Lu <59149377+calvinlu3@users.noreply.github.com> Co-authored-by: John Konecny <24961694+jfkonecn@users.noreply.github.com>
1 parent e1ed7f2 commit 5b601fa

File tree

66 files changed

+23623
-29942
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+23623
-29942
lines changed

screenshot-test/AnnotationPages.screenshot.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function getMockResponse(url){
161161
break;
162162

163163
// ROS1
164-
case `${SERVER_URL}api/private/utils/numbers/gene/ROS1`:
164+
case `${SERVER_URL}api/private/utils/numbers/gene/ROS1?germline=false`:
165165
res = {
166166
status: 200,
167167
contentType: 'application/json',
@@ -175,14 +175,14 @@ function getMockResponse(url){
175175
body: rose1GeneQuery
176176
};
177177
break;
178-
case `${SERVER_URL}api/private/search/variants/biological?hugoSymbol=ROS1`:
178+
case `${SERVER_URL}api/private/search/variants/biological?hugoSymbol=ROS1&germline=false`:
179179
res = {
180180
status: 200,
181181
contentType: 'application/json',
182182
body: ros1BiologicalVariants
183183
};
184184
break;
185-
case `${SERVER_URL}api/private/search/variants/clinical?hugoSymbol=ROS1`:
185+
case `${SERVER_URL}api/private/search/variants/clinical?hugoSymbol=ROS1&germline=false`:
186186
res = {
187187
status: 200,
188188
contentType: 'application/json',
@@ -247,7 +247,7 @@ function getMockResponse(url){
247247
break;
248248

249249
// TP53 Deletion
250-
case `${SERVER_URL}api/private/utils/numbers/gene/TP53`:
250+
case `${SERVER_URL}api/private/utils/numbers/gene/TP53?germline=false`:
251251
res = {
252252
status: 200,
253253
contentType: 'application/json',
@@ -261,14 +261,14 @@ function getMockResponse(url){
261261
body: tp53GeneQuery
262262
};
263263
break;
264-
case `${SERVER_URL}api/private/search/variants/biological?hugoSymbol=TP53`:
264+
case `${SERVER_URL}api/private/search/variants/biological?hugoSymbol=TP53&germline=false`:
265265
res = {
266266
status: 200,
267267
contentType: 'application/json',
268268
body: tp53BiologicalVariants
269269
};
270270
break;
271-
case `${SERVER_URL}api/private/search/variants/clinical?hugoSymbol=TP53`:
271+
case `${SERVER_URL}api/private/search/variants/clinical?hugoSymbol=TP53&germline=false`:
272272
res = {
273273
status: 200,
274274
contentType: 'application/json',
@@ -282,7 +282,7 @@ function getMockResponse(url){
282282
body: tp53EnsemblGenes
283283
};
284284
break;
285-
case `${SERVER_URL}api/private/utils/variantAnnotation?hugoSymbol=TP53&referenceGenome=GRCh37&alteration=Deletion`:
285+
case `${SERVER_URL}api/private/utils/variantAnnotation?hugoSymbol=TP53&referenceGenome=GRCh37&alteration=Deletion&germline=false`:
286286
res = {
287287
status: 200,
288288
contentType: 'application/json',
@@ -305,7 +305,7 @@ function getMockResponse(url){
305305
break;
306306

307307
// BRAF V600E
308-
case `${SERVER_URL}api/private/utils/numbers/gene/BRAF`:
308+
case `${SERVER_URL}api/private/utils/numbers/gene/BRAF?germline=false`:
309309
res = {
310310
status: 200,
311311
contentType: 'application/json',
@@ -319,14 +319,14 @@ function getMockResponse(url){
319319
body: brafGeneQuery
320320
};
321321
break;
322-
case `${SERVER_URL}api/private/search/variants/biological?hugoSymbol=BRAF`:
322+
case `${SERVER_URL}api/private/search/variants/biological?hugoSymbol=BRAF&germline=false`:
323323
res = {
324324
status: 200,
325325
contentType: 'application/json',
326326
body: brafBiologicalVariants
327327
};
328328
break;
329-
case `${SERVER_URL}api/private/search/variants/clinical?hugoSymbol=BRAF`:
329+
case `${SERVER_URL}api/private/search/variants/clinical?hugoSymbol=BRAF&germline=false`:
330330
res = {
331331
status: 200,
332332
contentType: 'application/json',
@@ -354,14 +354,14 @@ function getMockResponse(url){
354354
body: brafV600eRelevantAlterations
355355
};
356356
break;
357-
case `${SERVER_URL}api/private/utils/variantAnnotation?hugoSymbol=BRAF&referenceGenome=GRCh37&alteration=V600E&tumorType=MEL`:
357+
case `${SERVER_URL}api/private/utils/variantAnnotation?hugoSymbol=BRAF&referenceGenome=GRCh37&alteration=V600E&tumorType=MEL&germline=false`:
358358
res = {
359359
status: 200,
360360
contentType: 'application/json',
361361
body: brafV600eMelanomaVariantAnnotation
362362
};
363363
break;
364-
case `${SERVER_URL}api/private/utils/variantAnnotation?hugoSymbol=BRAF&referenceGenome=GRCh37&alteration=V600E&tumorType=HCL`:
364+
case `${SERVER_URL}api/private/utils/variantAnnotation?hugoSymbol=BRAF&referenceGenome=GRCh37&alteration=V600E&tumorType=HCL&germline=false`:
365365
res = {
366366
status: 200,
367367
contentType: 'application/json',
@@ -441,31 +441,31 @@ describe('Tests with login', () => {
441441
})
442442

443443
it('Gene Page', async() => {
444-
await page.goto(`${CLIENT_URL}gene/ROS1`);
444+
await page.goto(`${CLIENT_URL}gene/ROS1/somatic`);
445445
await page.setViewport(VIEW_PORT_1080);
446446
await page.waitFor(LONG_WAITING_TIME);
447447
let image = await page.screenshot(getScreenshotConfig('Gene Page with Login'));
448448
expect(image).toMatchImageSnapshot({ customSnapshotIdentifier: 'Gene Page with Login' });
449449
})
450450

451451
it('Alteration Page', async() => {
452-
await page.goto(`${CLIENT_URL}gene/TP53/Deletion`);
452+
await page.goto(`${CLIENT_URL}gene/TP53/somatic/Deletion`);
453453
await page.setViewport(VIEW_PORT_1080);
454454
await page.waitFor(WAITING_TIME);
455455
let image = await page.screenshot(getScreenshotConfig('Alteration Page with Login'));
456456
expect(image).toMatchImageSnapshot({ customSnapshotIdentifier: 'Alteration Page with Login' });
457457
})
458458

459459
it('Alteration Page with Cancer Type - Solid', async() => {
460-
await page.goto(`${CLIENT_URL}gene/BRAF/V600E/MEL`);
460+
await page.goto(`${CLIENT_URL}gene/BRAF/somatic/V600E/MEL`);
461461
await page.setViewport(VIEW_PORT_1080);
462462
await page.waitFor(WAITING_TIME);
463463
let image = await page.screenshot(getScreenshotConfig('Alteration Page with Cancer Type - Solid with Login'));
464464
expect(image).toMatchImageSnapshot({ customSnapshotIdentifier: 'Alteration Page with Cancer Type - Solid with Login' });
465465
})
466466

467467
it('Alteration Page with Cancer Type - Heme', async() => {
468-
await page.goto(`${CLIENT_URL}gene/BRAF/V600E/HCL`);
468+
await page.goto(`${CLIENT_URL}gene/BRAF/somatic/V600E/HCL`);
469469
await page.setViewport(VIEW_PORT_1080);
470470
await page.waitFor(WAITING_TIME);
471471
let image = await page.screenshot(getScreenshotConfig('Alteration Page with Cancer Type - Heme with Login'));
@@ -525,31 +525,31 @@ describe('Tests without login', () => {
525525
})
526526

527527
it('Gene Page', async() => {
528-
await page.goto(`${CLIENT_URL}gene/ROS1`);
528+
await page.goto(`${CLIENT_URL}gene/ROS1/somatic`);
529529
await page.setViewport(VIEW_PORT_1080);
530530
await page.waitFor(LONG_WAITING_TIME);
531531
let image = await page.screenshot(getScreenshotConfig('Gene Page without Login'));
532532
expect(image).toMatchImageSnapshot({ customSnapshotIdentifier: 'Gene Page without Login' });
533533
})
534534

535535
it('Alteration Page', async() => {
536-
await page.goto(`${CLIENT_URL}gene/TP53/Deletion`);
536+
await page.goto(`${CLIENT_URL}gene/TP53/somatic/Deletion`);
537537
await page.setViewport(VIEW_PORT_1080);
538538
await page.waitFor(WAITING_TIME);
539539
let image = await page.screenshot(getScreenshotConfig('Alteration Page without Login'));
540540
expect(image).toMatchImageSnapshot({ customSnapshotIdentifier: 'Alteration Page without Login' });
541541
})
542542

543543
it('Alteration Page with Cancer Type - Solid', async() => {
544-
await page.goto(`${CLIENT_URL}gene/BRAF/V600E/MEL`);
544+
await page.goto(`${CLIENT_URL}gene/BRAF/somatic/V600E/MEL`);
545545
await page.setViewport(VIEW_PORT_1080);
546546
await page.waitFor(WAITING_TIME);
547547
let image = await page.screenshot(getScreenshotConfig('Alteration Page with Cancer Type - Solid without Login'));
548548
expect(image).toMatchImageSnapshot({ customSnapshotIdentifier: 'Alteration Page with Cancer Type - Solid without Login' });
549549
})
550550

551551
it('Alteration Page with Cancer Type - Heme', async() => {
552-
await page.goto(`${CLIENT_URL}gene/BRAF/V600E/HCL`);
552+
await page.goto(`${CLIENT_URL}gene/BRAF/somatic/V600E/HCL`);
553553
await page.setViewport(VIEW_PORT_1080);
554554
await page.waitFor(WAITING_TIME);
555555
let image = await page.screenshot(getScreenshotConfig('Alteration Page with Cancer Type - Heme without Login'));
@@ -600,7 +600,7 @@ describe('Tests on mobile view (< large grid)', () => {
600600
await page.evaluate(() => {
601601
localStorage.setItem('oncokb-user-token', 'oncokb-public-demo-admin-token');
602602
});
603-
await page.goto(`${CLIENT_URL}gene/BRAF/V600E/HCL`);
603+
await page.goto(`${CLIENT_URL}gene/BRAF/somatic/V600E/HCL`);
604604
await page.setViewport(MOBILE_VIEW_PORT);
605605
await page.waitFor(WAITING_TIME);
606606
let image = await page.screenshot(getScreenshotConfig('Alteration Page with Cancer Type - With login - Mobile'));
@@ -611,7 +611,7 @@ describe('Tests on mobile view (< large grid)', () => {
611611
await page.evaluate(() => {
612612
localStorage.removeItem('oncokb-user-token');
613613
});
614-
await page.goto(`${CLIENT_URL}gene/BRAF/V600E/HCL`);
614+
await page.goto(`${CLIENT_URL}gene/BRAF/somatic/V600E/HCL`);
615615
await page.setViewport(MOBILE_VIEW_PORT);
616616
await page.waitFor(WAITING_TIME);
617617
let image = await page.screenshot(getScreenshotConfig('Alteration Page with Cancer Type - Without login - Mobile'));
38.5 KB
Loading
38.6 KB
Loading
58.8 KB
Loading
40.5 KB
Loading
38.6 KB
Loading
38.6 KB
Loading
32 KB
Loading
32 KB
Loading
122 KB
Loading

0 commit comments

Comments
 (0)