Detox

Gray box end-to-end testing and automation framework for mobile apps

MIT License

Downloads
1.1M
Stars
10.9K
Committers
260

Bot releases are visible (Hide)

Detox - 17.5.8

Published by LeoNatan about 4 years ago

Test input improvements on iOS:

  • Clear text now selects all text and taps backspace
  • Type text ensures the cursor is moved to the end of the text range before inserting text
Detox - 17.6.0

Published by LeoNatan about 4 years ago

Implements a new visibility testing algorithm on iOS, that takes into account possible occluding windows, superviews and keyboard. Should be also considerably faster than before.

Detox - 17.5.7

Published by noomorph about 4 years ago

Fixes

Detox - 17.5.6

Published by noomorph about 4 years ago

Fixes

  • fix(cli): double dash -- argv forwarding (#2339, by @noomorph)
Detox -

Published by d4vidi about 4 years ago

Features

  • Introduce the toHaveToggleValue() expectation, for asserting toggle widgets' state (such as switches and check-boxes). Example: await expect(element(by.id('switch'))).toHaveToggleValue(true) (#2334)
Detox - 17.5.3

Published by d4vidi about 4 years ago

Fixes

  • Prevent flooding of device status inquiries when debug-synchronization is enabled, eventually causing node.js' memory to run out (#2333).

Android

  • Greatly improve double-tapping action's stability and accuracy (#2332)
Detox -

Published by rotemmiz about 4 years ago

Resolve jest-cli relatively to jest itself - resolves issues where Detox could not resolve jest-cli if is a transitive dependency (thus requiring jest-cli to be a direct dependency of the user's project) - (#2330) @noomorph

Detox - 17.5.0

Published by LeoNatan about 4 years ago

We've listened to feedback. Interactions on iOS are now much less strict. No more testing for views to see if they are interactive; if a view is visible at the interaction point, the interaction is allowed.

Detox - 17.4.9

Published by noomorph about 4 years ago

Hotfixes

  • hotfix(cli): backward compatible path handling (#2323, by @noomorph)

In case if a user was calling node_modules/.bin/detox test ..., there was an issue:

/bin/sh: jest: command not found

This hotfix release should resolve the issue.

Detox - 17.4.7

Published by noomorph about 4 years ago

Breaking changes

  1. If you see Cannot find module 'jest-cli/build/cli/args' error, you should add jest-cli to your package.json's devDependencies and re-run npm install, e.g.:
 "devDependencies": {
   "jest": "25.5.4",
+  "jest-cli": "25.5.4",
  1. If you see an error similar to 'jest' is not recognized as an internal or external command, please upgrade your detox-cli global package:
npm -g install detox-cli

See some extra details in the Migration Guide.

Features

CLI

  • New -R, --retries option (#2269, by @noomorph) — supported only for the new Jest Circus integration.
    If you are still using jest-jasmine or the legacy Jest Circus integration, follow the Jest setup guide to hop aboard.

Fixes

General

  • Debug sync will be activated on all WS calls, not only on invoke. (#2300, by @rotemmiz)

iOS

  • If there is no RN and reactNativeReload is sent, just send ready (#2317, by @LeoNatan)
  • If a button label is targeted by a matcher, bubble the hit test to it… (#2317, by @LeoNatan)
Detox - 17.4.5

Published by LeoNatan about 4 years ago

Chaged the percentage parameter of swipe to be in screen coordinate space rather than element bounds coordinate space on iOS.

Detox - 17.3.4

Published by noomorph about 4 years ago

  • feat(jest): support artifact collection with jest.retryTimes(n) (#2242, by @noomorph)
Detox - 17.3.5

Published by LeoNatan about 4 years ago

  • Fixed an issue where it was not possible to tap on alert view buttons on iOS when selecting by.text().
  • Typing/clearing/replacing text no longer requires the element be hittable before attempting the action on iOS.
Detox - 17.3.3

Published by d4vidi about 4 years ago

Officially supporting RN 0.63.

Detox - 17.3.2

Published by d4vidi about 4 years ago

Android:

  • Enable parallel test-execution over attached (e.g. physical, Genymotion-cloud) devices (i.e. not just emulators), by upgrading the device name configuration to a RegExp (#2169) @DmytroKost
  • Allow for native-level configuration of the wait-time for RN loading via Detox.runTests() (#2231)
Detox - 17.3.1

Published by LeoNatan about 4 years ago

Fixed a crash when internal Detox math would produce nan, which cannot be serialized as JSON.

Detox - 17.3.0

Published by d4vidi about 4 years ago

New Major Feature: Element Screenshot (Android-only!) (#2012)

On top of Detox' existing device.takeScreenshot() API, we now support taking a visual screenshot of specific on-screen elements.
Refer to our documentation for full details.

Note: As a side-effect (see #2214), we introduced a subtle breaking change in all drivers, which affects external plug-in drivers you may have had implemented for your project. The fix is simple, and should be applied according to the following diff-snippet:

class Expect {
-  constructor(invocationManager) {
+  constructor({ invocationManager }) {
     this._invocationManager = invocationManager;
  }
}

class PluginDriver {
  constructor() {
-    this.matchers = new Expect(new invocationManager());
  }
}

-module.exports = PluginDriver;
+module.exports = {
+  DriverClass: PluginDriver,
+  ExpectClass: Expect,
+}

Namely, Detox now owns the instantiation of the Expect class, instead of the plugin.

More

  • Added support for --inspect-brk flag to Detox' cli which, when provided, would launch Detox' underlying test-runner (e.g. Jest, Mocha) in a wait-for-debugger mode (more precisely, it would launch the node.js instance in inspect mode) (#2177)
Detox - 17.2.1

Published by d4vidi over 4 years ago

Fix a crash related to RN 0.63 on Android (#2210)

Detox - 17.2.0

Published by noomorph over 4 years ago

  • feat(android): new device.utilBinaryPaths configuration property (by @d4vidi, #2188)
  • fix(android): APK installing issue on Windows (by @noomorph, #2212)
Detox - 17.0.2

Published by LeoNatan over 4 years ago

Improvements to visibility and hit testing and error logging.

Package Rankings
Top 0.61% on Npmjs.org
Top 3.86% on Proxy.golang.org
Top 21.46% on Repo1.maven.org
Badges
Extracted from project README
SWUbanner NPM Version NPM Downloads Build status Coverage Status Detox is released under the MIT license PR's welcome! Discord Twitter Follow
Related Projects