Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: show the content of the new item after clicking a few variants …
Browse files Browse the repository at this point in the history
…at one item and switching to another item
orlinmalkja committed Oct 28, 2024
1 parent d121803 commit 55a04d3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/cypress/e2e/variants.cy.js
Original file line number Diff line number Diff line change
@@ -97,6 +97,32 @@ const selectors = {
.should('have.length', 11)
})

it('Should switch normally to the new item when first selecting a few annotations and then switching the item', () => {
// show the annotation content of the new 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()

// show the text content of the new item
.get('#text-content')
.find('div')
.should('have.class', 'body karshuni')
.find('div[id="MD12675N1l4l2l6l4l4"]')
.children()
.eq(0)
.should('have.class', 'hi red')
})

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

0 comments on commit 55a04d3

Please sign in to comment.