
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
detox-applitools-testing
Advanced tools
Utility to integrate applitools screenshot testing in your detox tests
This is a helper project which allows you to add screeshot tests for your Detox tests using Applitools.
npm install detox-applitools-testing
Inside your Detox entry (usually index.js
file in e2e/index.js
) add following lines:
import {setup} from 'detox-applitools-testing';
before(async () => {
...
setup({
apiKey: 'EYES_API_KEY', //Your key from applitools,
appName: 'Your app Name',
batchId: 'Unique batch number, can simply be uuid.v4()',
serverUrl: 'applitools server url', //Optional, leave empty if not using custom server
branchName: 'YourBranchName', //Optional, run tests in specific branch. Learn more: https://help.applitools.com/hc/en-us/articles/360007528631-Branches
parentBranchName: 'YourParentBranchName', //Optional, compare tests against a specific baseline in a different branch. Learn more: https://help.applitools.com/hc/en-us/articles/360007528631-Branches
});
});
If you are using Jest, add this option to your Jest config to have faster global lookups (results in faster screenshot comparisons). Read more
"extraGlobals": ["Math"],
To use screenshot testing inside your tests:
import {testScreenshot} from 'detox-applitools-testing';
describe('...', await () => {
it('...', () => {
...
await testScreenshot('Unique test case');
});
});
await testScreenshot('NAME_OF_TEST', {
ignoredTopHeight : 44, // Optional, pixels from top to ignore
screenshotPath: 'YOUR_PATH', // Optional, by default screenshot is taken by Detox
});
By default testScreenshot cuts off top bar of the screenshot to hide the clock. You can disable it by using: testScreenshot('TEST_ID', {ignoredTopHeight: 0})
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
This project is MIT licensed.
FAQs
Utility to integrate applitools screenshot testing in your detox tests
The npm package detox-applitools-testing receives a total of 0 weekly downloads. As such, detox-applitools-testing popularity was classified as not popular.
We found that detox-applitools-testing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.