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