codeceptjs
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -0,1 +1,6 @@ | ||
## 0.4.5 | ||
* Fixed running `codecept def` command by @jankaspar | ||
* [Protractor][SeleniumWebdriver] Added support for special keys in `pressKey` method. Fixes #216 | ||
## 0.4.4 | ||
@@ -2,0 +7,0 @@ |
@@ -42,3 +42,3 @@ 'use strict'; | ||
let suppportI = container.support('I'); | ||
let translations = container.getTranslations(); | ||
let translations = container.translation(); | ||
let methods = []; | ||
@@ -49,3 +49,3 @@ let actions = []; | ||
methodsOfObject(helper).forEach((action) => { | ||
let actionAlias = container.getTranslations() ? container.getTranslations().actionAliasFor(action) : action; | ||
let actionAlias = container.translation() ? container.translation().actionAliasFor(action) : action; | ||
if (!actions[actionAlias]) { | ||
@@ -71,3 +71,3 @@ let params = getParamNames(helper[action]); | ||
let definitionsTemplate = template.replace('{{methods}}', methods.join('')); | ||
definitionsTemplate = definitionsTemplate.replace(/\{\{I\}\}/g, container.getTranslations().I); | ||
definitionsTemplate = definitionsTemplate.replace(/\{\{I\}\}/g, container.translation().I); | ||
@@ -74,0 +74,0 @@ fs.writeFileSync(path.join(testsPath, 'steps.d.ts'), definitionsTemplate); |
@@ -267,4 +267,6 @@ 'use strict'; | ||
} | ||
if (key == 'Enter') { | ||
key = this.webdriver.Key.ENTER; | ||
// guess special key in Selenium Webdriver list | ||
if (this.webdriver.Key[key.toUpperCase()]) { | ||
key = this.webdriver.Key[key.toUpperCase()]; | ||
} | ||
@@ -271,0 +273,0 @@ |
{ | ||
"name": "codeceptjs", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Modern Era Aceptance Testing Framework for NodeJS", | ||
@@ -5,0 +5,0 @@ "homepage": "http://codecept.io", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
199545
5693