diff --git a/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap b/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap deleted file mode 100644 index 9ab2bd52..00000000 --- a/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap +++ /dev/null @@ -1,5 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`geneSET crud operations and interactions diffexp 1`] = `"
Pop1 high (6/30/2021, 12:51:02 PM)021, 12:51:02 PM)
tint
00.511.50200400
min -0.4251gene set mean expression
: -0.42510926723480225
max 1.958
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`] = `"
Pop1 high (6/30/2021, 12:51:02 PM)021, 12:51:02 PM)
tint
00.511.50200400
min -0.4251gene set mean expression
: -0.42510926723480225
max 1.958
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/diffexpGeneSets.js b/client/__tests__/e2e/diffexpGeneSets.js new file mode 100644 index 00000000..627861c4 --- /dev/null +++ b/client/__tests__/e2e/diffexpGeneSets.js @@ -0,0 +1,105 @@ +export const diffexpPop1Genes = [ + "CD79A", + "HLA-DRB1", + "HLA-DQA1", + "HLA-DPB1", + "HLA-DQB1", + "HLA-DPA1", + "MS4A1", + "LTB", + "CD79B", + "CD37", + "HLA-DMA", + "TCL1A", + "LINC00926", + "HLA-DMB", + "HVCN1", + "EAF2", + "FCRLA", + "IRF8", + "PKIG", + "P2RX5", + "HLA-DOB", + "SPIB", + "BLNK", + "SWAP70", + "PNOC", + "CD19", + "SMIM14", + "CD72", + "KIAA0125", + "IGLL5", + "ARHGAP24", + "COTL1", + "C16orf74", + "BTK", + "SNX29P2", + "ADAM28", + "FCGR2B", + "PLD4", + "PPP1R14A", + "MZB1", + "KIAA0040", + "PHACTR1", + "FCRL2", + "RIC3", + "P2RY10", + "SCPEP1", + "DRAM2", + "RP5-887A10.1", + "CD82", + "GPX1", +]; + +export const diffexpPop2Genes = [ + "NKG7", + "GZMB", + "CTSW", + "PRF1", + "GNLY", + "GZMA", + "CST7", + "FGFBP2", + "SRGN", + "CD247", + "FCGR3A", + "TYROBP", + "FCER1G", + "ID2", + "SPON2", + "CCL4", + "CCL5", + "GZMH", + "GIMAP7", + "CLIC3", + "HOPX", + "XCL2", + "LGALS1", + "IGFBP7", + "AKR1C3", + "IL32", + "EFHD2", + "PRSS23", + "TTC38", + "ZAP70", + "S1PR5", + "SAMD3", + "GIMAP4", + "CCL3", + "ABI3", + "XCL1", + "S100A6", + "UBB", + "GPR56", + "PDIA3", + "S100A11", + "APOBEC3G", + "HAVCR2", + "PLEKHF1", + "LITAF", + "ARPC5L", + "PTGDR", + "PRMT2", + "GSTP1", + "FCRL6", +]; diff --git a/client/__tests__/e2e/e2eAnnotations.test.js b/client/__tests__/e2e/e2eAnnotations.test.js index 3512dcdf..f2a2583b 100644 --- a/client/__tests__/e2e/e2eAnnotations.test.js +++ b/client/__tests__/e2e/e2eAnnotations.test.js @@ -3,6 +3,7 @@ Tests included in this file are specific to annotation features */ import { appUrlBase, DATASET } from "./config"; import { datasets } from "./data"; +import { diffexpPop1Genes, diffexpPop2Genes } from "./diffexpGeneSets"; import { clickOn, @@ -159,7 +160,9 @@ describe.each([ (el) => el.parentElement.innerHTML ); - expect(popOneParentHTML).toMatchSnapshot(); + for (let i = 0; i < diffexpPop1Genes.length; i += 1) { + expect(popOneParentHTML).toContain(diffexpPop1Genes[i]); + } await expect(page).toClick(getTestClass("pop-1-geneset-expand")); await expect(page).toClick(getTestClass("pop-2-geneset-expand")); @@ -175,7 +178,9 @@ describe.each([ (el) => el.parentElement.innerHTML ); - expect(popTwoParentHTML).toMatchSnapshot(); + for (let i = 0; i < diffexpPop1Genes.length; i += 1) { + expect(popTwoParentHTML).toContain(diffexpPop2Genes[i]); + } }); test("create a new geneset", async () => { if (config.withSubset) return;