codeceptjs
Advanced tools
Comparing version 0.4.6 to 0.4.7
@@ -0,4 +1,10 @@ | ||
## 0.4.7 | ||
* Improved docs for `BeforeSuite`; fixed its usage with `restart: false` option by @APshenkin. | ||
* Added `Nightmare` to list of available helpers on `init`. | ||
* [Nightmare] Removed double `resizeWindow` implementation. | ||
## 0.4.6 | ||
* Added `BeforeSuite` and `AfterSuite` hooks to scenario by @APshenkin. See [updated documentation](http://codecept.io/basics/#beforeSuite) | ||
* Added `BeforeSuite` and `AfterSuite` hooks to scenario by @APshenkin. See [updated documentation](http://codecept.io/basics/#beforesuite) | ||
@@ -5,0 +11,0 @@ ## 0.4.5 |
@@ -23,3 +23,3 @@ 'use strict'; | ||
let helpers = ['WebDriverIO', 'Protractor', 'SeleniumWebdriver','FileSystem']; | ||
let helpers = ['WebDriverIO', 'Protractor', 'SeleniumWebdriver', 'Nightmare','FileSystem']; | ||
let translations = Object.keys(require('../../translations')); | ||
@@ -26,0 +26,0 @@ let noTranslation = 'English (no localization)'; |
@@ -446,12 +446,2 @@ 'use strict'; | ||
/** | ||
* {{> ../webapi/resizeWindow }} | ||
*/ | ||
resizeWindow(width, height) { | ||
if (width === 'maximize') { | ||
throw new Error('Not supported in Nightmare, use exact width and height'); | ||
} | ||
return this.browser.viewport(width, height); | ||
} | ||
/** | ||
* {{> ../webapi/checkOption }} | ||
@@ -458,0 +448,0 @@ */ |
@@ -27,13 +27,2 @@ /** | ||
suite.timeout(0); | ||
suite.beforeAll('codeceptjs.beforeSuite', function(done) { | ||
recorder.start(); | ||
event.dispatcher.emit(event.suite.before, suite); | ||
recorder.add(() => done()); | ||
}); | ||
suite.afterAll('codeceptjs.afterSuite', function(done) { | ||
recorder.start(); | ||
event.dispatcher.emit(event.suite.after, suite); | ||
recorder.add(() => done()); | ||
}); | ||
@@ -40,0 +29,0 @@ suite.on('pre-require', function (context, file, mocha) { |
{ | ||
"name": "codeceptjs", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"description": "Modern Era Aceptance Testing Framework for NodeJS", | ||
@@ -5,0 +5,0 @@ "homepage": "http://codecept.io", |
199907
5690