Skip to content

Commit 61f1dbd

Browse files
committed
Test for gene model with multiple exons and unusual SO terms
1 parent 2ef2ac8 commit 61f1dbd

File tree

8 files changed

+8
-11
lines changed

8 files changed

+8
-11
lines changed

packages/jbrowse-plugin-apollo/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
cypress/videos
55
cypress/screenshots
66
cypress/downloads
7+
cypress-image-diff-html-report
8+
cypress-image-diff-screenshots/comparison
9+
cypress-image-diff-screenshots/diff
17.4 KB
Loading

packages/jbrowse-plugin-apollo/cypress/e2e/simpleVisual.cy.ts renamed to packages/jbrowse-plugin-apollo/cypress/e2e/visualGeneModel.cy.ts

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@ describe('Simple tests for visuals', () => {
66
cy.deleteAssemblies()
77
})
88
it('Shows correct gene model', () => {
9-
cy.addAssemblyFromGff(
10-
'stopcodon.gff3',
11-
'test_data/cdsChecks/stopcodon.gff3',
12-
)
13-
cy.selectAssemblyToView('stopcodon.gff3')
14-
cy.searchFeatures('gene08', 1)
9+
cy.addAssemblyFromGff('so_types.gff3', 'test_data/so_types.gff3')
10+
cy.selectAssemblyToView('so_types.gff3')
11+
cy.searchFeatures('TGGT1_200010', 1)
1512
cy.wait(5000) // Wait for the gene model to render. It would be better to ensure some element of the canvas is actually there
1613

1714
cy.get('canvas[data-testid="overlayCanvas"]').compareSnapshot('gene-model')
18-
19-
cy.get('canvas[data-testid="seqTrackOverlayCanvas"]').compareSnapshot(
20-
'sixframe',
21-
)
2215
})
2316
})

packages/jbrowse-plugin-apollo/test_data/so_types.gff3

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ chr1 VEuPathDB protein_coding_gene 1 200 . - . ID=TGGT1_200010
33
chr1 VEuPathDB mRNA_with_frameshift 1 200 . - . ID=TGGT1_200010-t26_1;Parent=TGGT1_200010
44
chr1 VEuPathDB interior_exon 1 50 . - . ID=exon_TGGT1_200010-t26_1-E2;Parent=TGGT1_200010-t26_1
55
chr1 VEuPathDB interior_exon 70 100 . - . ID=exon_TGGT1_200010-t26_1-E1;Parent=TGGT1_200010-t26_1
6-
chr1 VEuPathDB CDS 1 50 . - 1 ID=TGGT1_200010-t26_1-p1-CDS2;Parent=TGGT1_200010-t26_1
6+
chr1 VEuPathDB CDS 1 50 . - 1 ID=TGGT1_200010-t26_1-p1-CDS1;Parent=TGGT1_200010-t26_1
77
chr1 VEuPathDB CDS 70 100 . - 0 ID=TGGT1_200010-t26_1-p1-CDS1;Parent=TGGT1_200010-t26_1
8+
chr1 VEuPathDB five_prime_UTR 160 200 . - 0 ID=UTR;Parent=TGGT1_200010-t26_1
89
##FASTA
910
>chr1
1011
cattgttgcggagttgaacaacggcattacgaacacttccgtctctcacttttatacgat

0 commit comments

Comments
 (0)