11import projects from '../../../fixtures/projects/projects.json' ;
22
33const currentProject = projects [ 1 ] ;
4- const currentProject2 = projects [ 24 ] ;
4+ const currentProject2 = projects [ 25 ] ;
55
66describe ( 'I can follow the project tutorial' , ( ) => {
7- xit ( 'displays the launcher tutorial on the overview window as regional advisor' , ( ) => {
7+ it ( 'displays the launcher tutorial on the overview window as regional advisor' , ( ) => {
88 cy . login ( 'conseiller1' ) ;
99 cy . visit ( `/project/${ currentProject . pk } ` ) ;
1010 cy . get ( '[data-test-id="tutorial-project-launcher"]' ) . should . exist ;
1111 } ) ;
1212
13- xit ( 'snooze the tutorial and tutorial disappear' , ( ) => {
13+ it ( 'snooze the tutorial and tutorial disappear' , ( ) => {
1414 cy . login ( 'conseiller1' ) ;
1515 cy . visit ( `/project/${ currentProject . pk } ` ) ;
1616
@@ -19,7 +19,7 @@ describe('I can follow the project tutorial', () => {
1919 cy . get ( '[data-test-id="tutorial-project-launcher"]' ) . should ( 'not.exist' ) ;
2020 } ) ;
2121
22- xit ( 'fills up the tutorial and tutorial disappear' , ( ) => {
22+ it ( 'fills up the tutorial and tutorial disappear' , ( ) => {
2323 cy . login ( 'conseiller2' ) ;
2424 cy . visit ( `/project/2` ) ;
2525
@@ -34,7 +34,7 @@ describe('I can follow the project tutorial', () => {
3434 } ) ;
3535
3636
37- xit ( 'displays the launcher tutorial on the overview window as advisor' , ( ) => {
37+ it ( 'displays the launcher tutorial on the overview window as advisor' , ( ) => {
3838 cy . login ( 'conseiller3' ) ;
3939 cy . visit ( `/project/${ currentProject . pk } ` ) ;
4040 cy . becomeAdvisor ( currentProject . pk ) ;
@@ -51,12 +51,12 @@ describe('I can follow the project tutorial', () => {
5151 it ( 'displays the launcher tutorial on the overview window as regional advisor not on the right region ' , ( ) => {
5252 cy . login ( 'conseiller4' ) ;
5353 cy . visit ( `/project/${ currentProject2 . pk } ` ) ;
54- cy . get ( '[data-test-id="tutorial-project-launcher"]' ) . should . exist ;
54+ cy . get ( '[data-test-id="tutorial-project-launcher"]' ) . should ( 'not .exist' ) ;
5555 } ) ;
5656
57- xit ( 'displays the launcher tutorial on the overview window as regional advisor not on the right region' , ( ) => {
58- cy . login ( 'conseiller4 ' ) ;
59- cy . visit ( `/project/25 ` ) ;
57+ it ( 'displays the launcher tutorial on the overview window as regional advisor not on the right region but with an invite accepted ' , ( ) => {
58+ cy . login ( 'conseiller5 ' ) ;
59+ cy . visit ( `/project/${ currentProject2 . pk } ` ) ;
6060 cy . get ( '[data-test-id="tutorial-project-launcher"]' ) . should . exist ;
6161 } ) ;
6262} ) ;
0 commit comments