This repository was archived by the owner on Jul 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class ChoicesHelper {
1717 } ) ;
1818 }
1919
20- private _rootSelector : string
20+ private _rootSelector : string ;
2121 constructor ( rootSelector ) {
2222 this . _rootSelector = rootSelector . replace ( / ^ \& / , this . _baseRootSelector ) ;
2323 }
@@ -49,6 +49,7 @@ class ChoicesHelper {
4949
5050 hasCheckedChoice ( text : string ) {
5151 this . findCheckedChoice ( text )
52+ . scrollIntoView ( )
5253 . should ( 'be.visible' ) ;
5354 }
5455
Original file line number Diff line number Diff line change @@ -204,10 +204,10 @@ export const LabelStudio = {
204204 * It uses inner logic of LabelStudio's object tag models
205205 */
206206 waitForObjectsReady ( ) {
207- cy . window ( ) . then ( win => {
207+ cy . window ( ) . then ( { timeout : 90000 , } , win => {
208208 return new Promise ( resolve => {
209209 const watchObjectsReady = ( ) => {
210- const isReady = win . Htx . annotationStore . selected . objects . every ( object => object . isReady ) ;
210+ const isReady = win . Htx ? .annotationStore ? .selected ? .objects ? .every ( object => object . isReady ) ;
211211
212212 if ( isReady ) {
213213 resolve ( true ) ;
You can’t perform that action at this time.
0 commit comments