@taqwright/taqwright 0.0.25 → 0.0.27

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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  </h1>
6
6
 
7
7
  <p align="center">
8
- <a href="https://github.com/taqelah/taqwright/tags"><img src="https://img.shields.io/badge/version-0.0.25-blue" alt="version" /></a>
8
+ <a href="https://github.com/taqelah/taqwright/tags"><img src="https://img.shields.io/badge/version-0.0.27-blue" alt="version" /></a>
9
9
  </p>
10
10
 
11
11
  E2E mobile UI testing on the Playwright runner, with a flat locator API on top of Appium 3.
package/dist/bin/init.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { mkdir, writeFile, readdir } from 'node:fs/promises';
2
- import { existsSync, statSync } from 'node:fs';
2
+ import { existsSync, lstatSync, statSync } from 'node:fs';
3
3
  import { resolve, join, basename, relative, dirname } from 'node:path';
4
4
  import { exec } from 'node:child_process';
5
5
  import { promisify } from 'node:util';
@@ -512,7 +512,8 @@ function runNpm(args, cwd) {
512
512
  async function isTaqwrightGloballyLinked() {
513
513
  try {
514
514
  const { stdout } = await execP('npm root -g');
515
- return existsSync(join(stdout.trim(), '@taqwright', 'taqwright'));
515
+ const p = join(stdout.trim(), '@taqwright', 'taqwright');
516
+ return existsSync(p) && lstatSync(p).isSymbolicLink();
516
517
  }
517
518
  catch {
518
519
  return false;
@@ -81,6 +81,9 @@ export function appiumRemoteOptions(use) {
81
81
  port: use.appium?.port ?? 4723,
82
82
  path: use.appium?.path ?? '/',
83
83
  logLevel: use.appium?.logLevel ?? 'warn',
84
+ ...(use.appium?.connectionTimeout !== undefined
85
+ ? { connectionRetryTimeout: use.appium.connectionTimeout }
86
+ : {}),
84
87
  capabilities: buildCapabilities(use),
85
88
  };
86
89
  }