Skip to content

Commit

Permalink
test: add test for updating variants list according to witnesses sele…
Browse files Browse the repository at this point in the history
…ction when disabling single select mode
  • Loading branch information
orlinmalkja committed Nov 6, 2024
1 parent b9bd8eb commit 791fcb0
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions tests/cypress/e2e/variants.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,31 @@ const selectors = {
cy
.get(selectors.list)
.should('be.visible')
.children()
.should("have.length", 13) // we have 11 variant items as in the normal mode - no single select mode
.find('div[data-annotation-id]')
.should("have.length", 11) // we have 11 variant items as in the normal mode - no single select mode
})
})

it('should show only the variants items according to witnesses drop down selection after disabling single select mode', () => {
cy.get(selectors.list)
.clickWitnessItem('4 Witnesses selected', 'Cod. Arab. 236')
.parent().parent()
.contains('DFM 614').click()

cy.get(selectors.panel4)
.contains('2 Witnesses selected')
.click({force: true})

cy
.clickSingleSelectButton()
cy
.clickSingleSelectButton()
cy
.get(selectors.list)
.should('be.visible')
.find('div[data-annotation-id]')
.should("have.length", 6)

})
})
});

0 comments on commit 791fcb0

Please sign in to comment.