Skip to content

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

fixes for web search.pw.e2e.js

Stanimirf4672e6468b7
diff --git a/app/components/EntryContainer.tsx b/app/components/EntryContainer.tsx
index b5a405b05..fe96ffb35 100644
--- a/app/components/EntryContainer.tsx
+++ b/app/components/EntryContainer.tsx
@@ -1229,9 +1229,17 @@ function EntryContainer(props: Props) {
)
: '';
- const fileName: string = openedFile.path
+ let fileName: string = openedFile.path
? extractFileName(openedFile.path, PlatformIO.getDirSeparator())
: '';
+ if (!fileName) {
+ const currentLocation = props.locations.find(
+ location => location.uuid === openedFile.locationId
+ );
+ if (currentLocation) {
+ fileName = currentLocation.name;
+ }
+ }
const renderPanels = () => {
const closeButton = (
diff --git a/app/package.json b/app/package.json
index 84815d1e7..aecaa5845 100644
--- a/app/package.json
+++ b/app/package.json
@@ -16,7 +16,7 @@
"@tagspaces/extensions": "1.0.84"
},
"nodeDependencies": {
- "@tagspaces/tagspaces-ws": "2.1.38",
+ "@tagspaces/tagspaces-ws": "2.1.39",
"@tagspaces/extensions": "1.0.84",
"sharp": "0.31.3"
}
diff --git a/app/services/test.ts b/app/services/test.ts
index d922cb850..d2f7ade8f 100644
--- a/app/services/test.ts
+++ b/app/services/test.ts
@@ -3,5 +3,5 @@ export function dataTidFormat(tid: string) {
// The ^ character inside the square brackets means "not"
return tid.trim().replace(/[^a-zA-Z0-9_-]+/g, '_');
}
- return 'undefinedTID';
+ return '';
}
diff --git a/package.json b/package.json
index 741ba9089..6184fb5a6 100644
--- a/package.json
+++ b/package.json
@@ -150,7 +150,7 @@
"@mui/styles": "5.10.15",
"@mui/x-date-pickers": "^5.0.8",
"@tagspaces/tagspaces-md": "2.1.6",
- "@tagspaces/tagspaces-platforms": "2.1.38",
+ "@tagspaces/tagspaces-platforms": "2.1.39",
"aws-amplify": "^4.3.8",
"aws-sdk": "^2.1036.0",
"babel-polyfill": "^6.26.0",
diff --git a/tests/e2e/search.helpers.js b/tests/e2e/search.helpers.js
index 2bbcb982d..5de5637c4 100644
--- a/tests/e2e/search.helpers.js
+++ b/tests/e2e/search.helpers.js
@@ -1,12 +1,18 @@
import {
- clickOn, expectElementExist, expectTagsExistBySelector, getGridFileSelector, isDisabled,
- isDisplayed, selectorFile, selectRowFiles,
+ clickOn,
+ expectElementExist,
+ expectTagsExistBySelector,
+ getGridFileSelector,
+ isDisabled,
+ isDisplayed,
+ selectorFile,
+ selectRowFiles,
setInputKeys,
setInputValue,
typeInputValue,
waitForNotification
-} from "./general.helpers";
-import { AddRemoveTagsToSelectedFiles } from "./perspective-grid.helpers";
+} from './general.helpers';
+import { AddRemoveTagsToSelectedFiles } from './perspective-grid.helpers';
export const regexQuery = '!"#$%&\'()*+,-./@:;<=>[\\]^_`{|}~';
export const searchTag = 'tag1';