From e42891bb9c141d1a798e495db1a798024762299e Mon Sep 17 00:00:00 2001 From: Prashant Birajdar Date: Fri, 20 Dec 2024 06:38:09 +0000 Subject: [PATCH] reviewing the code adding comments in code follow those suggestions --- tests/APITest.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/APITest.spec.js b/tests/APITest.spec.js index 7e3f23d..df85b6a 100644 --- a/tests/APITest.spec.js +++ b/tests/APITest.spec.js @@ -13,11 +13,11 @@ import { ProductPage } from '../pages/ProductPage'; test('Get Orders-Order by ID API',async ({request,page})=>{ - const response = await request.get('https://dev.orderbookings.com/api/order/syncOrders?user_id=670766e4272db54e96e423e0&phone=919480111222&lastupdatetime=0&merchantCode=919480707707&role=ROLE_TYPE_MERCHANT') + const response = await request.get('https://dev.orderbookings.com/api/order/syncOrders?user_id=670766e4272db54e96e423e0&phone=919480111222&lastupdatetime=0&merchantCode=919480707707&role=ROLE_TYPE_MERCHANT')//base uri should maintan separately console.log(await response.json()) - //expect(response.status()).toBe(200) - // const text = await response.text(); - // expect(text).toContain('Manju') + //expect(response.status()).toBe(200) //dont put commented code in repo + // const text = await response.text(); //its better to give discription for the steps you are following in comments + // expect(text).toContain('Manju') //add the ids of manual testcases in test.describe also suggest if the testcase is from regression suit or not and add tags respectively const res = await response.json(); const login = new LoginPage(page);