Skip to content

Commit 1957d3d

Browse files
authored
(fix): some typos in custom-helpers.md (#2307)
* fix some typos * Update custom-helpers.md
1 parent 0052184 commit 1957d3d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/custom-helpers.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ permalink: /helpers
33
title: Custom Helpers
44
---
55

6-
# Extending CodeceptJS with Custom Helopers
6+
# Extending CodeceptJS With Custom Helpers
77

8-
Helpers is a core concept of CodeceptJS. Helper is a wrapper on top of various libraries providing unified interface around them.
8+
Helper is the core concept of CodeceptJS. Helper is a wrapper on top of various libraries providing unified interface around them.
99

10-
Methods of Helper class will be available in tests in `I` object. This abstracts test scenarios from the implementation and allows easily switching between backends.
10+
Methods of Helper class will be available in tests in `I` object. This abstracts test scenarios from the implementation and allows switching between backends seamlessly.
1111

12-
Functionality of CodeceptJS should be extended by writing a custom helpers.
12+
Functionality of CodeceptJS could be extended by writing custom helpers.
1313

1414
Helpers can also be installed as Node packages and required by corresponding Node modules.
1515

@@ -37,7 +37,7 @@ helpers: {
3737
```
3838

3939
Helpers are ES6 classes inherited from [corresponding abstract class](https://github.com/Codeception/CodeceptJS/blob/master/lib/helper.js).
40-
Generated Helper will be added to `codecept.conf.js` config. It should look like this:
40+
Generated Helper will be added to `codecept.conf.js` config file. It should look like this:
4141

4242
```js
4343
const Helper = codecept_helper;
@@ -113,7 +113,7 @@ module.exports = MyHelper;
113113

114114
## Puppeteer Example
115115

116-
Puppeteer has [nice and elegant API](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md) which you can use inside helpers. Access `page` instance via `this.helpers.Puppeteer.page` from inside a helper.
116+
Puppeteer has [nice and elegant API](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md) which you can use inside helpers. Accessing `page` instance via `this.helpers.Puppeteer.page` from inside a helper.
117117

118118
Let's see how we can use [emulate](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pageemulateoptions) function to emulate iPhone browser in a test.
119119

@@ -327,4 +327,4 @@ Retry rules are available in array `recorder.retries`. The last retry rule can b
327327

328328
## Using Typescript
329329

330-
When using typescript, replace `module.exports` with `export` for autocompletion.
330+
With Typescript, just simply replacing `module.exports` with `export` for autocompletion.

0 commit comments

Comments
 (0)