Skip to content

Commit

Permalink
Minor tidying up
Browse files Browse the repository at this point in the history
  • Loading branch information
dariober committed Sep 12, 2023
1 parent b86ab3c commit 89f0111
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 63 deletions.
17 changes: 0 additions & 17 deletions packages/jbrowse-plugin-apollo/cypress/e2e/apollo.cy.ts

This file was deleted.

69 changes: 35 additions & 34 deletions packages/jbrowse-plugin-apollo/cypress/e2e/editFeature.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ describe('Different ways of editing features', () => {
cy.loginAsGuest()
})

it.only('Can select region on rubber-band and zoom into it', () => {
it('Can select region on rubber-band and zoom into it', () => {
cy.viewport(1000, 1000)
cy.addAssemblyFromGff('volvox_cy', 'test_data/space.gff3')
cy.selectAssemblyToView('volvox_cy')
Expand All @@ -23,39 +23,6 @@ describe('Different ways of editing features', () => {
cy.currentLocationEquals('ctgA', 1021, 2041, 10)
})

it('Can drag and move position', () => {
cy.viewport(1000, 1000)
cy.addAssemblyFromGff('volvox_cy', 'test_data/space.gff3')
cy.selectAssemblyToView('volvox_cy')
cy.contains('Open track selector').click()
cy.contains('Annotations (').click()
cy.get('[data-testid="MinimizeIcon"]').eq(1).click()
cy.get('input[placeholder="Search for location"]').type(
'ctgA:9400..9600{enter}',
)
// cy.contains('Table').click()
// cy.contains('Match5').click()
// cy.get('[data-testid="MoreVertIcon"]').click()
// cy.contains('Minimize track').click()
// cy.get('[data-testid="MoreVertIcon"]').click()
// cy.contains('Restore track').click()

cy.get('[data-testid="overlayCanvas"]').then((canvas) => {
cy.wrap(canvas).trigger('mouseover', 700, 10) // .rightclick()
})
// cy.get('[class="css-17gfnt3-verticalGuidesContainer"]').children().eq(0).trigger('mousedown', 200, 30)
// cy.get('[class="css-17gfnt3-verticalGuidesContainer"]').children().eq(0).trigger('mousemove', 900, 30)
// cy.get('[class="css-17gfnt3-verticalGuidesContainer"]').children().eq(0).trigger('mouseup', 900, 30)

// cy.get('[data-testid="trackContainer"]').children().eq(0).children().trigger('mousedown', 700, 30, { force: true })
// cy.get('[data-testid="trackContainer"]').children().eq(0).children().trigger('mousemove', 900, 30, { force: true })
// cy.get('[data-testid="trackContainer"]').children().eq(0).children().trigger('mouseup', 900, 30, { force: true })
// .parent().parent().trigger('mouseover')
// cy.get('[data-testid="canvas"]').parent().parent().trigger('mousedown', 580, 30)
// cy.get('[data-testid="canvas"]').parent().parent().trigger('mousemove', 200, 30)
// cy.get('[data-testid="canvas"]').parent().parent().trigger('mouseup', 200, 30)
})

it('Can edit feature via table editor', () => {
cy.addAssemblyFromGff('volvox_cy', 'test_data/space.gff3')
cy.selectAssemblyToView('volvox_cy')
Expand Down Expand Up @@ -92,4 +59,38 @@ describe('Different ways of editing features', () => {
cy.contains('9567')
cy.get('input[type="text"][value="CDS"]')
})

it.skip('Can drag and move position', () => {
cy.viewport(1000, 1000)
cy.addAssemblyFromGff('volvox_cy', 'test_data/space.gff3')
cy.selectAssemblyToView('volvox_cy')
cy.contains('Open track selector').click()
cy.contains('Annotations (').click()
cy.get('[data-testid="MinimizeIcon"]').eq(1).click()
cy.get('input[placeholder="Search for location"]').type(
'ctgA:9400..9600{enter}',
)
// cy.contains('Table').click()
// cy.contains('Match5').click()
// cy.get('[data-testid="MoreVertIcon"]').click()
// cy.contains('Minimize track').click()
// cy.get('[data-testid="MoreVertIcon"]').click()
// cy.contains('Restore track').click()

cy.get('[data-testid="overlayCanvas"]').then((canvas) => {
cy.wrap(canvas).trigger('mouseover', 700, 10) // .rightclick()
})
// cy.get('[class="css-17gfnt3-verticalGuidesContainer"]').children().eq(0).trigger('mousedown', 200, 30)
// cy.get('[class="css-17gfnt3-verticalGuidesContainer"]').children().eq(0).trigger('mousemove', 900, 30)
// cy.get('[class="css-17gfnt3-verticalGuidesContainer"]').children().eq(0).trigger('mouseup', 900, 30)

// cy.get('[data-testid="trackContainer"]').children().eq(0).children().trigger('mousedown', 700, 30, { force: true })
// cy.get('[data-testid="trackContainer"]').children().eq(0).children().trigger('mousemove', 900, 30, { force: true })
// cy.get('[data-testid="trackContainer"]').children().eq(0).children().trigger('mouseup', 900, 30, { force: true })
// .parent().parent().trigger('mouseover')
// cy.get('[data-testid="canvas"]').parent().parent().trigger('mousedown', 580, 30)
// cy.get('[data-testid="canvas"]').parent().parent().trigger('mousemove', 200, 30)
// cy.get('[data-testid="canvas"]').parent().parent().trigger('mouseup', 200, 30)
})

Check warning on line 95 in packages/jbrowse-plugin-apollo/cypress/e2e/editFeature.cy.ts

View workflow job for this annotation

GitHub Actions / Lint and build

Delete `⏎`
})
11 changes: 0 additions & 11 deletions packages/jbrowse-plugin-apollo/cypress/e2e/jbrowse.cy.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"apollo_url": "http://localhost:3000/?config=http%3A%2F%2Flocalhost%3A9000%2Fjbrowse_config.json"
}
}
6 changes: 6 additions & 0 deletions packages/jbrowse-plugin-apollo/cypress/support/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ import './commands'
import { addCommands } from 'cypress-mongodb/dist/index-browser'

addCommands()

// Cypress.on('uncaught:exception', (err, _runnable) => {
// if (err.message.includes('ResizeObserver')) {
// return false
// }
// })

0 comments on commit 89f0111

Please sign in to comment.