Browse Source

reviewing the code

adding comments in code follow those suggestions
OBA_Micheal
Prashant Birajdar 7 months ago
parent
commit
e42891bb9c
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      tests/APITest.spec.js

+ 4
- 4
tests/APITest.spec.js View File

@ -13,11 +13,11 @@ import { ProductPage } from '../pages/ProductPage';
test('Get Orders-Order by ID API',async ({request,page})=>{ 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()) 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 res = await response.json();
const login = new LoginPage(page); const login = new LoginPage(page);


Loading…
Cancel
Save