Skip to content

Commit 2ef1d06

Browse files
committed
Save state of sidetabs in Project on reload/reopen
1 parent b8dab5a commit 2ef1d06

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cypress/e2e/projects/detail/questionnaire/basic.spec.js

+11
Original file line numberDiff line numberDiff line change
@@ -312,4 +312,15 @@ describe('Basic Questionnaire Tests', () => {
312312
cy.get('.nav-link').contains('Chapter 2').click()
313313
project.checkAnswerChecked('Answer 2.2')
314314
})
315+
316+
317+
it('keep sidepanel open after refresh', () => {
318+
// open comments tab
319+
cy.get('.item').contains('Comments').click()
320+
cy.get('.comments-overview').should('be.visible')
321+
322+
// check that it remains open after reopening the page
323+
cy.reload()
324+
cy.get('.comments-overview').should('be.visible')
325+
})
315326
})

0 commit comments

Comments
 (0)