From 159d3ef9b10915e095adf5ae3acb9a68feb3fa16 Mon Sep 17 00:00:00 2001 From: Seve Badajoz Date: Thu, 1 Jul 2021 12:45:04 -0700 Subject: [PATCH] new snapshots --- .../__snapshots__/e2eAnnotations.test.js.snap | 4 ++++ client/__tests__/e2e/e2eAnnotations.test.js | 19 ++++++------------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap b/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap index b2c6342d..ca759215 100644 --- a/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap +++ b/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap @@ -21,3 +21,7 @@ exports[`annotations truncate midpoint whitespace 2`] = `"T"`; exports[`annotations truncate single character 2`] = `"T"`; + +exports[`geneSET crud operations and interactions diffexp 1`] = `"
drag-handle-horizontalCD79A79A
drag-handle-horizontalHLA-DRB1DRB1
drag-handle-horizontalHLA-DQA1DQA1
drag-handle-horizontalHLA-DPB1DPB1
drag-handle-horizontalHLA-DQB1DQB1
drag-handle-horizontalHLA-DPA1DPA1
drag-handle-horizontalMS4A14A1
drag-handle-horizontalLTBTB
drag-handle-horizontalCD79B79B
drag-handle-horizontalCD3737
drag-handle-horizontalHLA-DMA-DMA
drag-handle-horizontalTCL1AL1A
drag-handle-horizontalLINC0092600926
drag-handle-horizontalHLA-DMB-DMB
drag-handle-horizontalHVCN1CN1
drag-handle-horizontalEAF2F2
drag-handle-horizontalFCRLARLA
drag-handle-horizontalIRF8F8
drag-handle-horizontalPKIGIG
drag-handle-horizontalP2RX5RX5
drag-handle-horizontalHLA-DOB-DOB
drag-handle-horizontalSPIBIB
drag-handle-horizontalBLNKNK
drag-handle-horizontalSWAP70P70
drag-handle-horizontalPNOCOC
drag-handle-horizontalCD1919
drag-handle-horizontalSMIM14M14
drag-handle-horizontalCD7272
drag-handle-horizontalKIAA01250125
drag-handle-horizontalIGLL5LL5
drag-handle-horizontalARHGAP24AP24
drag-handle-horizontalCOTL1TL1
drag-handle-horizontalC16orf74rf74
drag-handle-horizontalBTKTK
drag-handle-horizontalSNX29P229P2
drag-handle-horizontalADAM28M28
drag-handle-horizontalFCGR2BR2B
drag-handle-horizontalPLD4D4
drag-handle-horizontalPPP1R14AR14A
drag-handle-horizontalMZB1B1
drag-handle-horizontalKIAA00400040
drag-handle-horizontalPHACTR1CTR1
drag-handle-horizontalFCRL2RL2
drag-handle-horizontalRIC3C3
drag-handle-horizontalP2RY10Y10
drag-handle-horizontalSCPEP1EP1
drag-handle-horizontalDRAM2AM2
drag-handle-horizontalRP5-887A10.17A10.1
drag-handle-horizontalCD8282
drag-handle-horizontalGPX1X1
"`; + +exports[`geneSET crud operations and interactions diffexp 2`] = `"
drag-handle-horizontalCD79A79A
drag-handle-horizontalHLA-DRB1DRB1
drag-handle-horizontalHLA-DQA1DQA1
drag-handle-horizontalHLA-DPB1DPB1
drag-handle-horizontalHLA-DQB1DQB1
drag-handle-horizontalHLA-DPA1DPA1
drag-handle-horizontalMS4A14A1
drag-handle-horizontalLTBTB
drag-handle-horizontalCD79B79B
drag-handle-horizontalCD3737
drag-handle-horizontalHLA-DMA-DMA
drag-handle-horizontalTCL1AL1A
drag-handle-horizontalLINC0092600926
drag-handle-horizontalHLA-DMB-DMB
drag-handle-horizontalHVCN1CN1
drag-handle-horizontalEAF2F2
drag-handle-horizontalFCRLARLA
drag-handle-horizontalIRF8F8
drag-handle-horizontalPKIGIG
drag-handle-horizontalP2RX5RX5
drag-handle-horizontalHLA-DOB-DOB
drag-handle-horizontalSPIBIB
drag-handle-horizontalBLNKNK
drag-handle-horizontalSWAP70P70
drag-handle-horizontalPNOCOC
drag-handle-horizontalCD1919
drag-handle-horizontalSMIM14M14
drag-handle-horizontalCD7272
drag-handle-horizontalKIAA01250125
drag-handle-horizontalIGLL5LL5
drag-handle-horizontalARHGAP24AP24
drag-handle-horizontalCOTL1TL1
drag-handle-horizontalC16orf74rf74
drag-handle-horizontalBTKTK
drag-handle-horizontalSNX29P229P2
drag-handle-horizontalADAM28M28
drag-handle-horizontalFCGR2BR2B
drag-handle-horizontalPLD4D4
drag-handle-horizontalPPP1R14AR14A
drag-handle-horizontalMZB1B1
drag-handle-horizontalKIAA00400040
drag-handle-horizontalPHACTR1CTR1
drag-handle-horizontalFCRL2RL2
drag-handle-horizontalRIC3C3
drag-handle-horizontalP2RY10Y10
drag-handle-horizontalSCPEP1EP1
drag-handle-horizontalDRAM2AM2
drag-handle-horizontalRP5-887A10.17A10.1
drag-handle-horizontalCD8282
drag-handle-horizontalGPX1X1
"`; diff --git a/client/__tests__/e2e/e2eAnnotations.test.js b/client/__tests__/e2e/e2eAnnotations.test.js index f2a2583b..0c2203bf 100644 --- a/client/__tests__/e2e/e2eAnnotations.test.js +++ b/client/__tests__/e2e/e2eAnnotations.test.js @@ -13,6 +13,7 @@ import { getTestId, getTestClass, getAllByClass, + getOneElementInnerHTML, } from "./puppeteerUtils"; import { @@ -155,14 +156,11 @@ describe.each([ getTestClass("gene-loading-spinner") ); - const popOneParentHTML = await page.$eval( - getTestClass("histogram-gene-set-summary"), - (el) => el.parentElement.innerHTML + let genesHTML = await getOneElementInnerHTML( + getTestClass("gene-set-genes") ); - for (let i = 0; i < diffexpPop1Genes.length; i += 1) { - expect(popOneParentHTML).toContain(diffexpPop1Genes[i]); - } + expect(genesHTML).toMatchSnapshot(); await expect(page).toClick(getTestClass("pop-1-geneset-expand")); await expect(page).toClick(getTestClass("pop-2-geneset-expand")); @@ -173,14 +171,9 @@ describe.each([ getTestClass("gene-loading-spinner") ); - const popTwoParentHTML = await page.$eval( - getTestClass("histogram-gene-set-summary"), - (el) => el.parentElement.innerHTML - ); + genesHTML = await getOneElementInnerHTML(getTestClass("gene-set-genes")); - for (let i = 0; i < diffexpPop1Genes.length; i += 1) { - expect(popTwoParentHTML).toContain(diffexpPop2Genes[i]); - } + expect(genesHTML).toMatchSnapshot(); }); test("create a new geneset", async () => { if (config.withSubset) return;