Skip to content

Commit 283e1ca

Browse files
authored
Release 2.6.6 (#2450)
* updated docs * fixed tests & updated linter * updated changelog * fixed mocks
1 parent b4c2cc6 commit 283e1ca

84 files changed

Lines changed: 48 additions & 186 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 2.6.6
2+
3+
* Puppeteer 4.0 support. Important: MockRequest helper won't work with Puppeter > 3.3
4+
* Added `xFeature` and `Feature.skip` to skip all tests in a suite. By @Georgegriff
5+
* [Appium] Fixed #2428 Android native locator support by @idxn
6+
* [WebDriver] Fixed `waitNumberOfVisibleElements` to actually filter visible elements. By @ilangv
7+
* [Puppeteer] Fixed handling error which is not an Error object. Fixes `cannot read property indexOf of undefined` error. Fix #2436 by @Georgegriff
8+
* [Puppeteer] Print error on page crash by @Georgegriff
9+
110
## 2.6.5
211

312
* Added `test.skipped` event to run-workers, fixing allure reports with skipped tests in workers #2391. Fix #2387 by @koushikmohan1996

bin/codecept.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ program.command('gherkin:snippets [path]')
6161
.option('--path [file]', 'file in which to place the new snippets')
6262
.action(require('../lib/command/gherkin/snippets'));
6363

64-
6564
program.command('generate:test [path]')
6665
.alias('gt')
6766
.description('Generates an empty test')
@@ -221,7 +220,6 @@ program.on('command:*', (cmd) => {
221220
program.outputHelp();
222221
});
223222

224-
225223
if (process.argv.length <= 2) {
226224
program.outputHelp();
227225
}

docs/changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ layout: Section
77

88
# Releases
99

10+
## 2.6.4
11+
12+
* **[Playwright]** **Playwright 1.0 support** by **[Georgegriff](https://github.com/Georgegriff)**.
13+
14+
## 2.6.3
15+
16+
* [stepByStepReport plugin] Fixed when using plugin with BeforeSuite. Fixes [#2337](https://github.com/Codeception/CodeceptJS/issues/2337) by **[mirao](https://github.com/mirao)**
17+
* [allure plugin] Fixed reporting of tests skipped by failure in before hook. Refer to [#2349](https://github.com/Codeception/CodeceptJS/issues/2349) & [#2354](https://github.com/Codeception/CodeceptJS/issues/2354). Fix by **[koushikmohan1996](https://github.com/koushikmohan1996)**
18+
1019
## 2.6.2
1120

1221
* [WebDriver][Puppeteer] Added `forceClick` method to emulate click event instead of using native events.

docs/helpers/Playwright.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Uses [Playwright][1] library to run tests inside:
1919

2020
This helper works with a browser out of the box with no additional tools required to install.
2121

22-
Requires `playwright` package to be installed:
22+
Requires `playwright` package version ^1 to be installed:
2323

2424
npm i playwright@^1 --save
2525

examples/checkout_test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Before((I) => {
44
I.amOnPage('https://getbootstrap.com/docs/4.0/examples/checkout/');
55
});
66

7-
87
Scenario('It should fill in checkout page', (I) => {
98
I.fillField('#lastName', 'mik');
109
I.fillField('Promo code', '123345');

examples/step_definitions/steps.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const assert = require('assert');
22
const Smth = require('../pages/Smth');
33

4-
54
const I = actor();
65
// Add in your custom step files
76

examples/yahoo_test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Scenario('Nightmare basic test', (I) => {
1010
I.see('segmentio/nightmare', 'li a');
1111
});
1212

13-
1413
// Our implementation of:
1514

1615
// nightmare

lib/assert/empty.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class EmptinessAssertion extends Assertion {
3030
return err;
3131
}
3232

33-
3433
addAssertParams() {
3534
this.params.value = this.params.actual = arguments[0];
3635
this.params.expected = [];

lib/assert/include.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const output = require('../output');
55

66
const MAX_LINES = 10;
77

8-
98
class InclusionAssertion extends Assertion {
109
constructor(params) {
1110
params.jar = params.jar || 'string';

lib/colorUtils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
* Convert a css color name to the hex equivalent
43
*/
@@ -155,7 +154,6 @@ function convertColorNameToHex(color) {
155154
return color;
156155
}
157156

158-
159157
/**
160158
* Convert a CSS hex color code (#00EE00) to rgba() format
161159
* @param {string} hex hex color code (#00EE00). Short form is also accepted i.e. #03F for #0033FF)

0 commit comments

Comments
 (0)