@@ -7,56 +7,56 @@ describe('Test that when files are loaded, old versions are migrated and bug fix
77 it ( 'Can migrate old files' , ( ) => {
88 // When drag and drop
99 cy . get ( 'div.cloning-history' ) . selectFile ( 'cypress/test_files/old_and_bug_fix/crispr_hdr.json' , { action : 'drag-drop' } ) ;
10- cy . get ( 'div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
10+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
1111
1212 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . click ( ) ;
13- cy . get ( 'div.MuiAlert-message' ) . should ( 'not.exist' ) ;
13+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' ) . should ( 'not.exist' ) ;
1414 addLane ( ) ;
1515 // When loading from file in source
1616 addSource ( 'UploadedFileSource' , true ) ;
1717 cy . get ( 'form.submit-sequence-file input' ) . last ( ) . selectFile ( 'cypress/test_files/old_and_bug_fix/crispr_hdr.json' , { force : true } ) ;
18- cy . get ( 'div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
18+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
1919 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . click ( ) ;
20- cy . get ( 'div.MuiAlert-message' ) . should ( 'not.exist' ) ;
20+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' ) . should ( 'not.exist' ) ;
2121 // When loading from menu
2222 cy . get ( '.MuiToolbar-root .MuiButtonBase-root' ) . contains ( 'File' ) . siblings ( 'input' ) . selectFile ( 'cypress/test_files/old_and_bug_fix/crispr_hdr.json' , { force : true } ) ;
2323 cy . get ( '.history-loaded-dialog' ) . contains ( 'Replace existing' ) . click ( ) ;
2424 cy . get ( '.history-loaded-dialog button' ) . contains ( 'Select' ) . click ( ) ;
25- cy . get ( 'div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
25+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
2626 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . click ( ) ;
27- cy . get ( 'div.MuiAlert-message' ) . should ( 'not.exist' ) ;
27+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' ) . should ( 'not.exist' ) ;
2828 } ) ;
2929 it ( 'Can fix bugs in old files' , ( ) => {
3030 // When drag and drop
3131 cy . get ( 'div.cloning-history' ) . selectFile ( 'cypress/test_files/old_and_bug_fix/gateway.json' , { action : 'drag-drop' } ) ;
32- cy . get ( 'div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
33- cy . get ( 'div.MuiAlert-message' ) . contains ( 'contained an error' ) ;
32+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
33+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' ) . contains ( 'contained an error' ) ;
3434 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . first ( ) . click ( ) ;
3535 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . first ( ) . click ( ) ;
36- cy . get ( 'div.MuiAlert-message' ) . should ( 'not.exist' ) ;
36+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' ) . should ( 'not.exist' ) ;
3737 addLane ( ) ;
3838 // When loading from file in source
3939 addSource ( 'UploadedFileSource' , true ) ;
4040 cy . get ( 'form.submit-sequence-file input' ) . last ( ) . selectFile ( 'cypress/test_files/old_and_bug_fix/gateway.json' , { force : true } ) ;
41- cy . get ( 'div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
42- cy . get ( 'div.MuiAlert-message' ) . contains ( 'contained an error' ) ;
41+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
42+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' ) . contains ( 'contained an error' ) ;
4343 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . first ( ) . click ( ) ;
4444 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . first ( ) . click ( ) ;
45- cy . get ( 'div.MuiAlert-message' ) . should ( 'not.exist' ) ;
45+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' ) . should ( 'not.exist' ) ;
4646 // When loading from menu
4747 cy . get ( '.MuiToolbar-root .MuiButtonBase-root' ) . contains ( 'File' ) . siblings ( 'input' ) . selectFile ( 'cypress/test_files/old_and_bug_fix/gateway.json' , { force : true } ) ;
4848 cy . get ( '.history-loaded-dialog' ) . contains ( 'Replace existing' ) . click ( ) ;
4949 cy . get ( '.history-loaded-dialog button' ) . contains ( 'Select' ) . click ( ) ;
50- cy . get ( 'div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
50+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
5151 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . first ( ) . click ( ) ;
5252 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . first ( ) . click ( ) ;
53- cy . get ( 'div.MuiAlert-message' ) . should ( 'not.exist' ) ;
53+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' ) . should ( 'not.exist' ) ;
5454 } ) ;
5555 it ( 'Works with zip files' , ( ) => {
5656 cy . get ( 'div.cloning-history' ) . selectFile ( 'cypress/test_files/old_and_bug_fix/cloning_strategy_with_sequencing.zip' , { action : 'drag-drop' } ) ;
57- cy . get ( 'div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
57+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' , { timeout : 20000 } ) . contains ( 'migrated to the latest version' ) ;
5858 cy . get ( 'div.MuiAlert-action svg[data-testid="CloseIcon"]' ) . click ( ) ;
59- cy . get ( 'div.MuiAlert-message' ) . should ( 'not.exist' ) ;
59+ cy . get ( '#global-error-message-wrapper div.MuiAlert-message' ) . should ( 'not.exist' ) ;
6060 cy . get ( '#sequence-1 svg[data-testid="RuleIcon"]' ) . click ( ) ;
6161 cy . get ( 'table' ) . contains ( 'BZO902_13409020_13409020.ab1' ) ;
6262 cy . get ( 'table' ) . contains ( 'BZO903_13409037_13409037.ab1' ) ;
0 commit comments