@@ -18,10 +18,10 @@ describe('Comments', () => {
1818 beforeEach ( ( ) => {
1919 cy . clearLocalStorage ( )
2020
21- cy . task ( 'questionnaire :delete' )
21+ cy . task ( 'project :delete' )
2222 cy . clearServerCache ( )
2323
24- cy . createQuestionnaire ( {
24+ cy . createProject ( {
2525 visibility : project . VisibleView ,
2626 sharing : project . Restricted ,
2727 name : projectName ,
@@ -37,7 +37,7 @@ describe('Comments', () => {
3737 project . openCommentsFor ( 'Options Question 1' )
3838 project . startNewCommentThread ( 'This is a new thread' )
3939 project . expectCommentCount ( 1 )
40- cy . clearCurrentQuestionnaireSidePanelLocalStorage ( )
40+ cy . clearCurrentProjectSidePanelLocalStorage ( )
4141 cy . reload ( )
4242 project . expectCommentCount ( 1 )
4343 }
@@ -50,15 +50,15 @@ describe('Comments', () => {
5050 project . openPrivateNotesFor ( 'Options Question 1' )
5151 project . startNewPrivateNotesThread ( 'This is a new thread' )
5252 project . expectCommentCount ( 2 )
53- cy . clearCurrentQuestionnaireSidePanelLocalStorage ( )
53+ cy . clearCurrentProjectSidePanelLocalStorage ( )
5454 cy . reload ( )
5555 project . expectCommentCount ( 2 )
5656 }
5757
5858 const testNoPrivateNotes = ( ) => {
5959 project . openCommentsFor ( 'Options Question 1' )
6060 cy . getCy ( 'comments_nav_private-notes' ) . should ( 'not.exist' )
61- cy . clearCurrentQuestionnaireSidePanelLocalStorage ( )
61+ cy . clearCurrentProjectSidePanelLocalStorage ( )
6262 }
6363
6464 it ( 'as Admin' , ( ) => {
@@ -308,7 +308,7 @@ describe('Comments', () => {
308308 project . setProjectSharing ( project . AnyoneWithLinkEdit )
309309
310310 const msg = {
311- type : 'SetContent_ClientQuestionnaireAction ' ,
311+ type : 'SetContent_ClientProjectMessage ' ,
312312 data : {
313313 type : 'AddCommentEvent' ,
314314 uuid : 'd805310f-62f4-4559-88b2-df425c9ded5d' ,
@@ -323,7 +323,7 @@ describe('Comments', () => {
323323
324324 project . open ( projectName )
325325 project . expectCommentCount ( 0 )
326- cy . wsSend ( `/questionnaires /${ projectUuid } /websocket` , msg )
326+ cy . wsSend ( `/projects /${ projectUuid } /websocket` , msg )
327327 project . openCommentsFor ( 'Options Question 1' )
328328 cy . get ( '.Comment_MD' ) . contains ( 'This is a comment' ) . should ( 'exist' )
329329 } )
0 commit comments