Skip to content

Commit

Permalink
Update Playwright_test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jun 25, 2023
1 parent 2c1288b commit c57a87e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helper/Playwright_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,9 +813,9 @@ describe('Playwright', function () {

describe('#makeApiRequest', () => {
it('should make 3rd party API request', async () => {
const response = await I.makeApiRequest('get', 'https://jsonplaceholder.typicode.com/todos/1');
const response = await I.makeApiRequest('get', 'https://reqres.in/api/users?page=2');
expect(response.status()).to.equal(200);
expect(await response.json()).to.include.keys(['id', 'title']);
expect(await response.json()).to.include.keys(['page']);
});

it('should make local API request', async () => {
Expand Down

0 comments on commit c57a87e

Please sign in to comment.