Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AmsterGet authored Nov 26, 2024
1 parent 86f55e7 commit 15dc292
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,30 @@ console's `error`, `warn` reports as error log if message contains "error" menti

As an alternative to this approach the [`ReportingAPI`](#log) methods can be used.

### Nested steps

ReportPortal supports reportings of native [Playwright steps](https://playwright.dev/docs/api/class-test#test-step) as nested steps.

```typescript
import { test, expect } from '@playwright/test';

test('test', async ({ page }) => {
await test.step('Log in', async () => {
// ...
});

await test.step('Outer step', async () => {
// ...
// You can nest steps inside each other.
await test.step('Inner step', async () => {
// ...
});
});
});
```

To turn on this feature, just set the `includeTestSteps` config options to `true`.

### Reporting API

This reporter provides Reporting API to use it directly in tests to send some additional data to the report.
Expand Down

0 comments on commit 15dc292

Please sign in to comment.