Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
added example test with PW using Jest matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-nastenko committed Feb 2, 2024
1 parent 6b2c64c commit d31813a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Follow the commit history for a detailed, step-by-step guide.
8 changes: 8 additions & 0 deletions tests/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {test, expect} from '@playwright/test';

test('testing Playwright with Jest matchers', () => {
expect({}).not.toContainKey('qwerty');
expect(['a', 'b', 'c']).toIncludeAllPartialMembers(['a']);
expect([1, 2, 3]).toBeSorted({descending: false});
expect([{age: 40}, {age: 30}, {age: 20}]).toBeSortedBy('age', {descending: true});
})

0 comments on commit d31813a

Please sign in to comment.