Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.

Commit 5d04cce

Browse files
committed
chore: LEAP-25: Update helpers
1 parent c25d774 commit 5d04cce

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

helpers/LSF/Choices.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

helpers/LSF/LabelStudio.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)