Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: fix e2e test with file selection

Ilian Sapundshiev4d9a772c4b4c
diff --git a/src/renderer/components/FolderContainer.tsx b/src/renderer/components/FolderContainer.tsx
index d1b176256..7bd9f6ad8 100644
--- a/src/renderer/components/FolderContainer.tsx
+++ b/src/renderer/components/FolderContainer.tsx
@@ -347,6 +347,7 @@ function FolderContainer(props: Props) {
marginTop: -2,
marginRight: 5,
minWidth: 100,
+ maxHeight: 32,
width: 'stretch',
maxWidth: 300,
margin: '0 auto',
diff --git a/tests/e2e/general.helpers.js b/tests/e2e/general.helpers.js
index db00b2b79..7a43f85f2 100644
--- a/tests/e2e/general.helpers.js
+++ b/tests/e2e/general.helpers.js
@@ -3,16 +3,16 @@ import { expect } from '@playwright/test';
import pathLib from 'path';
import AppConfig from '../../src/renderer/AppConfig';
import { dataTidFormat } from '../../src/renderer/services/test';
+import { getS3File } from '../s3rver/S3DataRefresh';
import { createFileS3, createLocalFile, delay } from './hook';
import { firstFile, openContextEntryMenu, toContainTID } from './test-utils';
-import { getS3File } from '../s3rver/S3DataRefresh';
+import fse from 'fs-extra';
import {
createPwLocation,
createPwMinioLocation,
createS3Location,
} from './location.helpers';
-import fse from 'fs-extra';
// export const defaultLocationPath = './testdata-tmp/file-structure/supported-filestypes';
export const defaultLocationName = 'supported-filestypes';
@@ -596,7 +596,7 @@ export async function selectRowFiles(arrIndex = []) {
const id = await divEl.getAttribute('data-entry-id');
arrElements.push(id);
const spanEl = await divEl.$(
- 'div:nth-child(3) div ' + (i > 1 ? 'button' : 'span'),
+ 'div:nth-child(3) div span',
);
await spanEl.click();
}