-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83c0958
commit b8de1ea
Showing
2 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const { test, expect } = require('@playwright/test'); | ||
|
||
const data = [{id: 25, username: 'mariaget', firstName: 'maria', lastName: 'silva', email: 'test@mail.com', password: 'test123', phone: '11985632850', userStatus: 1}] | ||
|
||
|
||
test.describe('New Todo', () => { | ||
test('should allow consult user by API reques', async ({ request }) => { | ||
|
||
await request.post(`/v2/user/createWithArray`, {data}) | ||
|
||
const listUser = await request.get(`/v2/user/${data[0].username}`) | ||
|
||
const body = await listUser.json() | ||
expect([body]).toEqual(data) | ||
}); | ||
}); | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters