tauri-test-cli 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +3 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -122116,12 +122116,13 @@ function findAvailableDisplay() {
122116
122116
  return 99;
122117
122117
  }
122118
122118
  async function waitForDisplay(display, timeoutMs = 1e4) {
122119
- const displayStr = `:${display}`;
122119
+ const lockFile = `/tmp/.X${display}-lock`;
122120
+ const socketFile = `/tmp/.X11-unix/X${display}`;
122120
122121
  const startTime = Date.now();
122121
122122
  const pollInterval = 100;
122122
122123
  while (Date.now() - startTime < timeoutMs) {
122123
122124
  try {
122124
- execSync4(`DISPLAY=${displayStr} xdpyinfo`, { stdio: "ignore", timeout: 1000 });
122125
+ execSync4(`test -e ${lockFile} && test -e ${socketFile}`, { stdio: "ignore", timeout: 1000 });
122125
122126
  return true;
122126
122127
  } catch {
122127
122128
  await new Promise((resolve) => setTimeout(resolve, pollInterval));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tauri-test-cli",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "CLI for testing Tauri applications with screenshot capture, DOM inspection, and user interaction simulation",
5
5
  "type": "module",
6
6
  "bin": {