@@ -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' ) ) ;
0 commit comments