@@ -9,6 +9,8 @@ describe('ACCEPTANCE: ORGANIZATION_ADMIN | REPOSITORIES', () => {
99 const waitTime = 1000 ;
1010 const waitTime2 = 2000 ;
1111 const waitTime3 = 3000 ;
12+ const waitTime4 = 4000 ;
13+ const waitTime5 = 5000 ;
1214 let prefix = '' ;
1315 let suffix = '' ;
1416 const min = 500000 ;
@@ -106,7 +108,7 @@ describe('ACCEPTANCE: ORGANIZATION_ADMIN | REPOSITORIES', () => {
106108 cy . visit ( '/providers/' + provider_id + '/repositories/new' ) ;
107109 cy . url ( ) . should ( 'include' , '/providers/' + provider_id + '/repositories/new' ) . then ( ( ) => {
108110
109- cy . wait ( waitTime2 ) ;
111+ cy . wait ( waitTime5 ) ;
110112 cy . get ( 'h2.work' ) . contains ( 'DataCite' ) ;
111113 cy . get ( 'a#account_menu_link' ) . should ( 'contain' , Cypress . env ( 'organization_admin_username' ) . toUpperCase ( ) ) ;
112114
@@ -116,7 +118,6 @@ describe('ACCEPTANCE: ORGANIZATION_ADMIN | REPOSITORIES', () => {
116118 cy . get ( '#client-type' ) . should ( 'be.visible' ) ;
117119 cy . get ( '#client-type .ember-power-select-selected-item' ) . should ( 'contain' , 'Repository' ) ;
118120
119- /* - TEMPORARILY SKIP THIS
120121 // Set client_type to Periodical
121122 cy . get ( 'div#client-type div[role="button"]' ) . click ( { waitForAnimations : true } ) . then ( ( ) => {
122123 cy . get ( 'ul.ember-power-select-options li' ) . contains ( 'Periodical' ) . click ( { waitForAnimations : true } ) . then ( ( ) => {
@@ -138,13 +139,21 @@ describe('ACCEPTANCE: ORGANIZATION_ADMIN | REPOSITORIES', () => {
138139 } )
139140 } ) ;
140141
142+ // Set client_type to RAiD Registry
143+ cy . get ( 'div#client-type div[role="button"]' ) . click ( { waitForAnimations : true } ) . then ( ( ) => {
144+ cy . get ( 'ul.ember-power-select-options li' ) . contains ( 'RAiD Registry' ) . click ( { waitForAnimations : true } ) . then ( ( ) => {
145+ // RAiD Registry client_type divs should be visible
146+ cy . get ( '#repository-issn' ) . should ( 'not.exist' ) ;
147+ cy . get ( '#repository-type' ) . should ( 'be.visible' ) ;
148+ cy . get ( '#certificate' ) . should ( 'be.visible' ) ;
149+ } )
150+ } ) ;
141151
142152 // Set client_type back to Repository
143153 cy . get ( 'div#client-type div[role="button"]' ) . click ( { waitForAnimations : true } ) . then ( ( ) => {
144154 cy . get ( 'ul.ember-power-select-options li' ) . contains ( 'Repository' ) . click ( { waitForAnimations : true } )
145155 } ) ;
146156 cy . get ( '#client-type .ember-power-select-selected-item' ) . should ( 'contain' , 'Repository' ) ;
147- */
148157
149158 cy . get ( '#re3data' ) . should ( 'be.visible' ) ;
150159 cy . get ( '#name' ) . should ( 'be.visible' ) ;
0 commit comments