Advertisement
didkoslawow

Untitled

Jul 5th, 2023
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const [response] = await Promise.all([
  2.         page.waitForRequest(r => r.url().includes('/jsonstore/collections/books') && r.method() === 'POST'),
  3.         page.click('text="Submit"'),
  4.       ]);
  5.  
  6.       expect(JSON.parse(response.postData())).to.deep.eq({ title: 'title', author: 'author' });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement