@@ -6,6 +6,7 @@ context('Sandbox', () => {
66 const selDatasetName = 'a.dataset-name' ;
77 const selReRunToggle = '.rerun' ;
88 const selReRunShortcut = '.rerun-shortcut' ;
9+ const selReRunToggleEnabled = `${ selReRunToggle } :not(.rerun-disabled)` ;
910
1011 const selUpload = `${ selContainer } .upload` ;
1112 const selTitle = '.title-name' ;
@@ -57,6 +58,7 @@ context('Sandbox', () => {
5758 } ;
5859
5960 describe ( 'Rerun Dataset' , ( ) => {
61+
6062 beforeEach ( ( ) => {
6163 cy . visit ( '/dataset/1234' ) ;
6264 login ( ) ;
@@ -67,13 +69,13 @@ context('Sandbox', () => {
6769 it ( 'should not be available for zip uploads' , ( ) => {
6870 fillUploadForm ( 'name' , true ) ;
6971 cy . get ( selDatasetName ) . click ( force ) ;
70- cy . get ( selReRunToggle ) . should ( 'not.exist' ) ;
72+ cy . get ( selReRunToggleEnabled ) . should ( 'not.exist' ) ;
7173 } ) ;
7274
7375 it ( 'should not be available for xslt uploads' , ( ) => {
7476 fillUploadForm ( 'name' , true , 'http' , true ) ;
7577 cy . get ( selDatasetName ) . click ( force ) ;
76- cy . get ( selReRunToggle ) . should ( 'not.exist' ) ;
78+ cy . get ( selReRunToggleEnabled ) . should ( 'not.exist' ) ;
7779 } ) ;
7880
7981 it ( 'should be available for http uploads' , ( ) => {
0 commit comments