activate node before clicking action buttons in tests

This commit is contained in:
Yisroel Baum 2026-05-04 10:03:54 +03:00
parent c73cbe2f1a
commit 793b0149b8
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
5 changed files with 39 additions and 13 deletions

View file

@ -30,7 +30,7 @@ describe('The user text detail page', () => {
cy.visit('/texts/0')
cy.wait('@getNodes')
cy.get('#text-detail > ul > li').first()
cy.get('#text-detail > ul > li').first().activateNode()
.children('button.add-child').click()
cy.get('#text-detail > ul > li').first()
.children('input.child-title').type('My new child')