Skip to content

Commit

Permalink
test: add: when clicking a few variant items and switching the item, …
Browse files Browse the repository at this point in the history
…the new variants list is shown
  • Loading branch information
malkja committed Oct 25, 2024
1 parent fa62b51 commit e5166fb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/cypress/e2e/variants.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,22 @@ const selectors = {

})

it('Should show the new list of annotations when first selecting a few annotations and then switching the item', () => {
cy
.get(selectors.list)
.children()
.eq(0)
.click()
.next()
.click()
.get(selectors.panel1)
.find('ul[role="tree"]')
.find('ul[role="group"]')
.find('div').contains('182b')
.click()
.checkNoAnnotationsAvailable()
})

it('select (unselect) a variant item', () => {
// should select a variant item and add its witness after the highlighted text + the highlighted text should become light blue
cy
Expand Down

0 comments on commit e5166fb

Please sign in to comment.