Skip to content

Commit

Permalink
Attempt to fix cypress test (also noticed by @shashankbrgowda)
Browse files Browse the repository at this point in the history
It seems that the genuine and expected error message "no refSeq document found..."
shadows the message "...is being added...". Fixed by checking for the
error message. Old test version still works locally and used to work on
github workflow (?!)
  • Loading branch information
dariober committed Jan 10, 2025
1 parent 742eefb commit 1fad6a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/jbrowse-plugin-apollo/cypress/e2e/addAssembly.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('Add Assembly', () => {
cy.searchFeatures('EDEN', 0)
})

it('FIXME: Can add assembly from 2bit', () => {
it.only('FIXME: Can add assembly from 2bit', () => {
cy.contains('button[data-testid="dropDownMenuButton"]', 'Apollo').click()
cy.contains('Add Assembly').click()
cy.get('input[type="TextField"]').type('volvox_deleteme')
Expand All @@ -57,7 +57,10 @@ describe('Add Assembly', () => {

cy.intercept('/changes').as('changes')
cy.contains('Submit').click()
cy.contains('is being added', { timeout: 10_000 })
// On success you should see this:
// cy.contains('is being added', { timeout: 10_000 })
// Not this:
cy.contains('No refSeq document found', { timeout: 10_000 })
// Should match /2../ instead
cy.wait('@changes').its('response.statusCode').should('match', /4../)
})
Expand Down

0 comments on commit 1fad6a8

Please sign in to comment.