Skip to content

Commit

Permalink
Fix closing drawer in cypress tests
Browse files Browse the repository at this point in the history
When loading an assembly close the drawer of jobs tasks *before*
reloading the page since occasionally the drawer is already closed after
reloading.
  • Loading branch information
dariober committed Dec 17, 2024
1 parent 0936c87 commit 276d71a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/jbrowse-plugin-apollo/cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ Cypress.Commands.add('addAssemblyFromGff', (assemblyName, fin) => {
cy.contains('AddAssemblyAndFeaturesFromFileChange')
.parent()
.should('contain', 'All operations successful')
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(1000)
cy.reload()
cy.get('button[aria-label="Close drawer"]', { timeout: 20_000 }).click()
cy.reload()
cy.contains('Select assembly to view', { timeout: 10_000 })
})

Expand Down

0 comments on commit 276d71a

Please sign in to comment.