Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

testable-utils

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testable-utils - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

5

lib/wdio-commands.js

@@ -63,2 +63,7 @@ var _ = require('lodash');

});
browser.addCommand('testableScreenshot', function(name) {
const id = info.region.name + '-' + info.chunk.id + '-' + info.client + '-' + info.iteration;
const dir = (process.env.OUTPUT_DIR || '.') + '/';
browser.saveScreenshot(dir + id + '-' + name + '.png');
});
}

@@ -65,0 +70,0 @@ }

2

package.json
{
"name": "testable-utils",
"version": "0.1.2",
"version": "0.1.3",
"description": "Utilities for Testable scripts",

@@ -5,0 +5,0 @@ "author": "Avi Stramer",

@@ -195,2 +195,8 @@ # Testable Script Utilities

### Screenshots
One command that has no `testable-utils` equivalent is `browser.testableScreenshot(name)`. This command takes a screenshot and puts it in the output directory to be collected as part of the test results. It also includes a prefix to make it easier to identify: `[region]-[chunk]-[user]-[iteration]-[name].png`. Tests are broken up into chunks, and within each chunk users and iterations are numbered starting at 0. So for example `us-east-1-123-0-0-MyHomePage.png` would be chunk id 123, first user, first iteration, image name `MyHomePage`.
### Command Mappings
<table>

@@ -263,2 +269,6 @@ <tr>

<tr>
<td><pre>browser.testableLogTrace(msg);</pre></td>
<td><a href="#logging"><pre>log.trace(msg);</pre></a></td>
</tr>
<tr>
<td><pre>browser.testableLogDebug(msg);</pre></td>

@@ -265,0 +275,0 @@ <td><a href="#logging"><pre>log.debug(msg);</pre></a></td>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc