Skip to content

Commit

Permalink
Attempt loading so.json for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dariober committed Dec 4, 2024
1 parent bd97982 commit d902170
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/apollo-collaboration-server/.development.env
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ SESSION_SECRET=g9fGaRuw06T7hs960Tm7KYyfcFaYEIaG9jfFnVEQ4QyFXmq7
##############################################################################

# Google client id and secret.
GOOGLE_CLIENT_ID=1054515969695-3hpfg1gd0ld3sgj135kfgikolu86vv30.apps.googleusercontent.com
GOOGLE_CLIENT_ID=1000521104117-bhd8r4v11cc053g0b80ui00ss9s5fitv.apps.googleusercontent.com
# Alternatively, can be a path to a file with the client ID
# GOOGLE_CLIENT_ID_FILE=/run/secrets/google-client-id
GOOGLE_CLIENT_SECRET=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
GOOGLE_CLIENT_SECRET=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
# Alternatively, can be a path to a file with the client secret
# GOOGLE_CLIENT_SECRET_FILE=/run/secrets/google-client-secret

Expand Down
2 changes: 1 addition & 1 deletion packages/jbrowse-plugin-apollo/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = defineConfig({
// Make viewport long and thin to avoid the scrollbar on the right interfere
// with the coordinates
viewportHeight: 2000,
viewportWidth: 1000,
viewportWidth: 1500,
retries: {
runMode: 2,
},
Expand Down
Binary file not shown.
3 changes: 2 additions & 1 deletion packages/jbrowse-plugin-apollo/cypress/e2e/editFeature.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe('Different ways of editing features', () => {
cy.contains('td', '=CDS1').should('not.exist')
})

it('Suggest only valid SO terms from dropdown', () => {
it.only('Suggest only valid SO terms from dropdown', () => {
cy.addAssemblyFromGff('onegene.fasta.gff3', 'test_data/onegene.fasta.gff3')
cy.selectAssemblyToView('onegene.fasta.gff3')
cy.searchFeatures('gx1', 1)
Expand All @@ -186,6 +186,7 @@ describe('Different ways of editing features', () => {
timeout: 60_000,
force: true,
})

cy.contains('li', /^start_codon$/, {
timeout: 60_000,
matchCase: false,
Expand Down
12 changes: 11 additions & 1 deletion packages/jbrowse-plugin-apollo/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Cypress.Commands.add('addOntologies', () => {
},
{
name: 'Sequence Ontology',
version: '3.1',
version: 'unversioned',
source: {
uri: 'http://localhost:9000/test_data/so-v3.1.json',
locationType: 'UriLocation',
Expand All @@ -94,6 +94,16 @@ Cypress.Commands.add('addOntologies', () => {
{ timeout: 120_000 },
)
})
cy.readFile('cypress/data/so.json.gz', null).then((soGZip: Buffer) => {
cy.wrap<Promise<void>>(
loadOntology(
soGZip,
'Apollo Ontology "Sequence Ontology" "unversioned"',
2,
),
{ timeout: 120_000 },
)
})
})

Cypress.Commands.add('addAssemblyFromGff', (assemblyName, fin) => {
Expand Down

0 comments on commit d902170

Please sign in to comment.