@@ -165,7 +165,7 @@ describe('Research data publishing in editor decision', function () {
165165 cy . waitDatasetTabLoading ( 'datasetTab' ) ;
166166 cy . get ( '#datasetTab-button .pkpBadge' ) . contains ( '2' ) ;
167167 } ) ;
168- it ( 'Check research data is published in editor decision ' , function ( ) {
168+ it ( 'Check research data can be published in article acceptance ' , function ( ) {
169169 cy . login ( 'dbarnes' , null , 'publicknowledge' ) ;
170170 cy . findSubmission ( 'active' , submission . title ) ;
171171
@@ -181,7 +181,23 @@ describe('Research data publishing in editor decision', function () {
181181 cy . get ( 'input[name="shouldPublishResearchData"][value="1"]' ) . should ( 'not.be.checked' ) ;
182182 cy . get ( 'input[name="shouldPublishResearchData"][value="0"]' ) . should ( 'not.be.checked' ) ;
183183
184- cy . get ( 'input[name="shouldPublishResearchData"][value="1 "]' ) . click ( ) ;
184+ cy . get ( 'input[name="shouldPublishResearchData"][value="0 "]' ) . click ( ) ;
185185 cy . get ( 'button:contains("Record Editorial Decision")' ) . click ( ) ;
186+ cy . wait ( 1000 ) ;
187+
188+ cy . get ( '#workflow-button' ) . click ( ) ;
189+ cy . get ( 'li.pkp_workflow_editorial.initiated' ) . within ( ( ) => {
190+ cy . contains ( 'Copyediting' ) ;
191+ } ) ;
192+ } ) ;
193+ it ( 'Dataset publish prompt does not appear when sending to production' , function ( ) {
194+ cy . login ( 'dbarnes' , null , 'publicknowledge' ) ;
195+ cy . findSubmission ( 'active' , submission . title ) ;
196+
197+ cy . get ( 'ul.pkp_workflow_decisions:visible a:contains("Send To Production")' , { timeout : 30000 } ) . click ( ) ;
198+ cy . get ( 'button:contains("Next:")' ) . click ( ) ;
199+
200+ cy . get ( '#researchDataNotice' ) . should ( 'not.exist' ) ;
201+ cy . get ( '#researchDataPublishChoice' ) . should ( 'not.exist' ) ;
186202 } ) ;
187203} ) ;
0 commit comments