Skip to content

Commit 8f8934c

Browse files
authored
Merge branch '3.x' into task-4593-bump-webdriverio
2 parents 8e42fa7 + b563fd3 commit 8f8934c

File tree

141 files changed

+7050
-7714
lines changed

Some content is hidden

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

141 files changed

+7050
-7714
lines changed

bin/codecept.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const commandFlags = {
3232
}
3333

3434
const errorHandler =
35-
(fn) =>
35+
fn =>
3636
async (...args) => {
3737
try {
3838
await fn(...args)
@@ -286,7 +286,7 @@ program
286286

287287
.action(require('../lib/command/run-rerun'))
288288

289-
program.on('command:*', (cmd) => {
289+
program.on('command:*', cmd => {
290290
console.log(`\nUnknown command ${cmd}\n`)
291291
program.outputHelp()
292292
})

docs/helpers/Nightmare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ if none provided clears all cookies.
148148

149149
```js
150150
I.clearCookie();
151-
I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
151+
I.clearCookie('test');
152152
```
153153

154154
#### Parameters

docs/helpers/Playwright.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,12 @@ if none provided clears all cookies.
546546

547547
```js
548548
I.clearCookie();
549-
I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
549+
I.clearCookie('test');
550550
```
551551

552552
#### Parameters
553553

554+
* `cookieName`  
554555
* `cookie` **[string][9]?** (optional, `null` by default) cookie name
555556

556557
### clearField

docs/helpers/Protractor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ if none provided clears all cookies.
267267

268268
```js
269269
I.clearCookie();
270-
I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
270+
I.clearCookie('test');
271271
```
272272

273273
#### Parameters

docs/helpers/Puppeteer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ if none provided clears all cookies.
398398

399399
```js
400400
I.clearCookie();
401-
I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
401+
I.clearCookie('test');
402402
```
403403

404404
#### Parameters

docs/helpers/TestCafe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ if none provided clears all cookies.
198198

199199
```js
200200
I.clearCookie();
201-
I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
201+
I.clearCookie('test');
202202
```
203203

204204
#### Parameters

docs/helpers/WebDriver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ if none provided clears all cookies.
604604

605605
```js
606606
I.clearCookie();
607-
I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
607+
I.clearCookie('test');
608608
```
609609

610610
#### Parameters

docs/webapi/clearCookie.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if none provided clears all cookies.
33

44
```js
55
I.clearCookie();
6-
I.clearCookie('test'); // Playwright currently doesn't support clear a particular cookie name
6+
I.clearCookie('test');
77
```
88

99
@param {?string} [cookie=null] (optional, `null` by default) cookie name

lib/assert/empty.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const output = require('../output')
55

66
class EmptinessAssertion extends Assertion {
77
constructor(params) {
8-
super((value) => {
8+
super(value => {
99
if (Array.isArray(value)) {
1010
return value.length === 0
1111
}
@@ -22,9 +22,7 @@ class EmptinessAssertion extends Assertion {
2222
const err = new AssertionFailedError(this.params, "{{customMessage}}expected {{subject}} '{{value}}' {{type}}")
2323

2424
err.cliMessage = () => {
25-
const msg = err.template
26-
.replace('{{value}}', output.colors.bold('{{value}}'))
27-
.replace('{{subject}}', output.colors.bold('{{subject}}'))
25+
const msg = err.template.replace('{{value}}', output.colors.bold('{{value}}')).replace('{{subject}}', output.colors.bold('{{subject}}'))
2826
return template(msg, this.params)
2927
}
3028
return err
@@ -39,5 +37,5 @@ class EmptinessAssertion extends Assertion {
3937

4038
module.exports = {
4139
Assertion: EmptinessAssertion,
42-
empty: (subject) => new EmptinessAssertion({ subject }),
40+
empty: subject => new EmptinessAssertion({ subject }),
4341
}

lib/assert/equal.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ class EqualityAssertion extends Assertion {
1818
getException() {
1919
const params = this.params
2020
params.jar = template(params.jar, params)
21-
const err = new AssertionFailedError(
22-
params,
23-
'{{customMessage}}expected {{jar}} "{{expected}}" {{type}} "{{actual}}"',
24-
)
21+
const err = new AssertionFailedError(params, '{{customMessage}}expected {{jar}} "{{expected}}" {{type}} "{{actual}}"')
2522
err.showDiff = false
2623
if (typeof err.cliMessage === 'function') {
2724
err.message = err.cliMessage()
@@ -42,8 +39,8 @@ class EqualityAssertion extends Assertion {
4239

4340
module.exports = {
4441
Assertion: EqualityAssertion,
45-
equals: (jar) => new EqualityAssertion({ jar }),
46-
urlEquals: (baseUrl) => {
42+
equals: jar => new EqualityAssertion({ jar }),
43+
urlEquals: baseUrl => {
4744
const assert = new EqualityAssertion({ jar: 'url of current page' })
4845
assert.comparator = function (expected, actual) {
4946
if (expected.indexOf('http') !== 0) {
@@ -53,5 +50,5 @@ module.exports = {
5350
}
5451
return assert
5552
},
56-
fileEquals: (file) => new EqualityAssertion({ file, jar: 'contents of {{file}}' }),
53+
fileEquals: file => new EqualityAssertion({ file, jar: 'contents of {{file}}' }),
5754
}

0 commit comments

Comments
 (0)