Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion helpers/LSF/Choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ChoicesHelper {
});
}

private _rootSelector: string
private _rootSelector: string;
constructor(rootSelector) {
this._rootSelector = rootSelector.replace(/^\&/, this._baseRootSelector);
}
Expand Down Expand Up @@ -49,6 +49,7 @@ class ChoicesHelper {

hasCheckedChoice(text: string) {
this.findCheckedChoice(text)
.scrollIntoView()
.should('be.visible');
}

Expand Down
4 changes: 2 additions & 2 deletions helpers/LSF/LabelStudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ export const LabelStudio = {
* It uses inner logic of LabelStudio's object tag models
*/
waitForObjectsReady() {
cy.window().then(win => {
cy.window().then({ timeout: 90000, }, win => {
return new Promise(resolve => {
const watchObjectsReady = () => {
const isReady = win.Htx.annotationStore.selected.objects.every(object => object.isReady);
const isReady = win.Htx?.annotationStore?.selected?.objects?.every(object => object.isReady);

if (isReady) {
resolve(true);
Expand Down