Skip to content

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

fix: failing e2e test from TST93

Ilian Sapundshiev8923bcbf91fa
diff --git a/.gitignore b/.gitignore
index d1a93e1f6..5c9781f18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -91,6 +91,7 @@ resources/license_en.txt
src/.env
src/main/config
extconfig*
+!scripts/extconfig-*.js
!web/extconfig.js
!web/extconfig.tmpl.js
diff --git a/scripts/extconfig-update-disabled.js b/scripts/extconfig-update-disabled.js
new file mode 100644
index 000000000..0d1d7aca5
--- /dev/null
+++ b/scripts/extconfig-update-disabled.js
@@ -0,0 +1,10 @@
+// Test fixture: simulates a deployer (enterprise admin / Linux distro
+// packager) who wants to suppress update-server calls by setting the
+// ExtCheckForUpdatesOnStartup flag to false. The selector
+// getCheckForUpdateOnStartup honors this regardless of the user's own
+// state.settings.checkForUpdates preference, so initApp must NOT
+// dispatch checkForUpdate() and no XHR should hit the update server.
+//
+// Used by tests/e2e/update-check.pw.e2e.js (TST93).
+window.ExtIsFirstRun = false;
+window.ExtCheckForUpdatesOnStartup = false;