Skip to content

Commit 3d308f8

Browse files
added lighthouse docs (#66)
1 parent 6c55209 commit 3d308f8

20 files changed

+549
-512
lines changed

docs/Formatters/console-formatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Console formatter for cucumber framework
99
## Installation
1010
`npm install @qavajs/console-formatter`
1111

12-
## Config
12+
## Configuration
1313
To use formatter just add formatter section in config file
1414

1515
```javascript

docs/Formatters/html-formatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Single file HTML formatter for cucumber framework
99
## Installation
1010
`npm install @qavajs/html-formatter`
1111

12-
## Config
12+
## Configuration
1313
Add to formatter section in config file
1414

1515
```javascript

docs/Formatters/junit-formatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_position: 5
66

77
Junit formatter is built-in to CucumberJS so no need to install any packages
88

9-
## Config
9+
## Configuration
1010
```javascript
1111
export default {
1212
format: [

docs/Formatters/xray-formatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Jira Xray formatter for cucumber framework
99
## Installation
1010
`npm install @qavajs/xray-formatter`
1111

12-
## Config
12+
## Configuration
1313
Add to format section in config file
1414

1515
cloud configuration:

docs/Guides/composing-steps.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/Guides/composing-steps.mdx

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
sidebar_position: 3
3+
---
4+
5+
import Tabs from '@theme/Tabs';
6+
import TabItem from '@theme/TabItem';
7+
8+
# Composing Steps
9+
Framework provides capability to implement complex logic via `executeStep` world method
10+
that allow to call gherkin definitions programmatically
11+
12+
<Tabs>
13+
<TabItem value="js" label="JavaScript" default>
14+
```javascript
15+
const { When, DataTable } = require('@cucumber/cucumber');
16+
17+
When('I do smth complex', async function() {
18+
await this.executeStep(`I type 'username' to 'Username Input'`);
19+
await this.executeStep(`I type 'password' to 'Password Input'`);
20+
await this.executeStep(`I click 'Login Button'`);
21+
await this.executeStep(`I fill following fields`, new DataTable([
22+
[ 'Order', '123' ],
23+
[ 'Delivery Location', 'New York' ]
24+
]))
25+
});
26+
```
27+
</TabItem>
28+
<TabItem value="ts" label="TypeScript">
29+
```typescript
30+
import { IQavajsWorld } from '@qavajs/cli';
31+
import { When, DataTable } from '@cucumber/cucumber';
32+
33+
When('I do smth complex', async function(this: IQavajsWorld) {
34+
await this.executeStep(`I type 'username' to 'Username Input'`);
35+
await this.executeStep(`I type 'password' to 'Password Input'`);
36+
await this.executeStep(`I click 'Login Button'`);
37+
await this.executeStep(`I fill following fields`, new DataTable([
38+
[ 'Order', '123' ],
39+
[ 'Delivery Location', 'New York' ]
40+
]))
41+
});
42+
```
43+
</TabItem>
44+
</Tabs>
45+

docs/Guides/page-object.md

Lines changed: 0 additions & 155 deletions
This file was deleted.

0 commit comments

Comments
 (0)