Skip to content

Commit

Permalink
Set viewport in config; Set log level and trigger in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dariober committed Sep 21, 2023
1 parent d6fc05a commit 407e6fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: CI
on:
push:
branches:
- cypress
on: pull_request

jobs:
build:
Expand Down Expand Up @@ -38,6 +35,7 @@ jobs:
env:
GUEST_USER_ROLE: admin
MONGODB_URI: mongodb://localhost:27017/apolloTestDb
LOG_LEVELS: error,warn,log
run: yarn run test:e2e

- name: Archive test results
Expand Down
2 changes: 2 additions & 0 deletions packages/jbrowse-plugin-apollo/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const { defineConfig } = require('cypress')
const { configurePlugin } = require('cypress-mongodb')

module.exports = defineConfig({
viewportHeight: 2000,
viewportWidth: 1000,
env: {
mongodb: {
uri: 'mongodb://localhost:27017/?directConnection=true',
Expand Down
4 changes: 1 addition & 3 deletions packages/jbrowse-plugin-apollo/cypress/e2e/editFeature.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ describe('Different ways of editing features', () => {
cy.loginAsGuest()
})

it('Can select region on rubber-band and zoom into it', () => {
cy.viewport(1000, 1000)
it.skip('Can select region on rubber-band and zoom into it', () => {
const assemblyName = 'space.gff3'
cy.addAssemblyFromGff(assemblyName, `test_data/${assemblyName}`)
cy.selectAssemblyToView(assemblyName)
Expand Down Expand Up @@ -82,7 +81,6 @@ describe('Different ways of editing features', () => {
})

it.skip('Can drag and move position', () => {
cy.viewport(1000, 1000)
const assemblyName = 'space.gff3'
cy.addAssemblyFromGff(assemblyName, `test_data/${assemblyName}`)
cy.selectAssemblyToView(assemblyName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ describe('Search features', () => {
})

it('One hit, no children', () => {
cy.viewport(2000, 1000)
cy.addAssemblyFromGff('volvox.fasta.gff3', 'test_data/volvox.fasta.gff3')
cy.selectAssemblyToView('volvox.fasta.gff3')
cy.searchFeatures('Match6')
Expand Down

0 comments on commit 407e6fe

Please sign in to comment.