Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
Add the example with steps
  • Loading branch information
gibiw committed Jun 13, 2024
1 parent 556aa92 commit b4b1b0e
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions qase-playwright/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,24 +101,34 @@ import { qase } from 'playwright-qase-reporter';
describe('Test suite', () => {
test('Simple test', () => {
qase.id(1);
qase.title('Example of simple test')
qase.title('Example of simple test');
expect(true).toBe(true);
});

test('Test with annotated fields', () => {
qase.id(2);
qase.fields({ 'severity': 'high', 'priority': 'medium' })
qase.fields({ 'severity': 'high', 'priority': 'medium' });
expect(true).toBe(true);
});

test(qase(2, 'This syntax is still supported'), () => {
expect(true).toBe(true);
});

test('Running, but not reported to Qase', () => {
qase.ignore();
expect(true).toBe(true);
});

test('Test with steps', async () => {
await test.step('Step 1', async () => {
expect(true).toBe(true);
});
await test.step('Step 2', async () => {
expect(true).toBe(true);
});
expect(true).toBe(true);
});
});
```

Expand Down

0 comments on commit b4b1b0e

Please sign in to comment.