Skip to content

added lighthouse docs #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Formatters/console-formatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Console formatter for cucumber framework
## Installation
`npm install @qavajs/console-formatter`

## Config
## Configuration
To use formatter just add formatter section in config file

```javascript
Expand Down
2 changes: 1 addition & 1 deletion docs/Formatters/html-formatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Single file HTML formatter for cucumber framework
## Installation
`npm install @qavajs/html-formatter`

## Config
## Configuration
Add to formatter section in config file

```javascript
Expand Down
2 changes: 1 addition & 1 deletion docs/Formatters/junit-formatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 5

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

## Config
## Configuration
```javascript
export default {
format: [
Expand Down
2 changes: 1 addition & 1 deletion docs/Formatters/xray-formatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Jira Xray formatter for cucumber framework
## Installation
`npm install @qavajs/xray-formatter`

## Config
## Configuration
Add to format section in config file

cloud configuration:
Expand Down
37 changes: 0 additions & 37 deletions docs/Guides/composing-steps.md

This file was deleted.

45 changes: 45 additions & 0 deletions docs/Guides/composing-steps.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
sidebar_position: 3
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Composing Steps
Framework provides capability to implement complex logic via `executeStep` world method
that allow to call gherkin definitions programmatically

<Tabs>
<TabItem value="js" label="JavaScript" default>
```javascript
const { When, DataTable } = require('@cucumber/cucumber');

When('I do smth complex', async function() {
await this.executeStep(`I type 'username' to 'Username Input'`);
await this.executeStep(`I type 'password' to 'Password Input'`);
await this.executeStep(`I click 'Login Button'`);
await this.executeStep(`I fill following fields`, new DataTable([
[ 'Order', '123' ],
[ 'Delivery Location', 'New York' ]
]))
});
```
</TabItem>
<TabItem value="ts" label="TypeScript">
```typescript
import { IQavajsWorld } from '@qavajs/cli';
import { When, DataTable } from '@cucumber/cucumber';

When('I do smth complex', async function(this: IQavajsWorld) {
await this.executeStep(`I type 'username' to 'Username Input'`);
await this.executeStep(`I type 'password' to 'Password Input'`);
await this.executeStep(`I click 'Login Button'`);
await this.executeStep(`I fill following fields`, new DataTable([
[ 'Order', '123' ],
[ 'Delivery Location', 'New York' ]
]))
});
```
</TabItem>
</Tabs>

155 changes: 0 additions & 155 deletions docs/Guides/page-object.md

This file was deleted.

Loading