Skip to content

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

chore: fix e2e test for the reindexing

Ilian Sapundshievbd9fa6d62834
diff --git a/tests/e2e/search.helpers.js b/tests/e2e/search.helpers.js
index fcaa4c1d4..c3e124ff6 100644
--- a/tests/e2e/search.helpers.js
+++ b/tests/e2e/search.helpers.js
@@ -69,7 +69,10 @@ export async function searchEngine(
}
if (options.reindexing) {
- await clickOn('[data-tid=forceIndexingTID]');
+ // forceIndexingTID is a TsSwitch (MUI Switch) since the force-reindex
+ // redesign — clicking the root span doesn't reliably toggle it, so
+ // check the underlying input (same pattern as changeFullTextIndex).
+ await global.client.check('[data-tid=forceIndexingTID] input');
}
if (options.searchType) {
await clickOn('[data-tid=' + options.searchType + ']');