Created
July 30, 2023 19:16
-
-
Save imartinflores/a54e7297faccb57e467203b089cb5027 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('Should add item to cart', async({page})=>{ | |
const Url = 'https://ecommerce-playground.lambdatest.io/index.php/'; | |
await page.goto(Url); | |
const response =await page.request.post(Url, { | |
params:{ | |
route: "checkout/cart/add" | |
}, | |
form: { | |
product_id: 28, | |
quantity: 1 | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment