Skip to content

Commit

Permalink
package added
Browse files Browse the repository at this point in the history
  • Loading branch information
An5hul-Choudhary committed Apr 17, 2024
1 parent c1a5d0f commit 0272cb4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {},
"scripts": {
"test": "npx playwright test ApiSecondTest.spec.js --headed"
},
"keywords": [],
"author": "",
"license": "ISC",
Expand Down
14 changes: 14 additions & 0 deletions state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"cookies": [],
"origins": [
{
"origin": "https://rahulshettyacademy.com",
"localStorage": [
{
"name": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NjBmOTEzMmE4NmY4Zjc0ZGNiN2Y1ZDIiLCJ1c2VyRW1haWwiOiJhbnNoaWthMjIyQGdtYWlsLmNvbSIsInVzZXJNb2JpbGUiOjQ0NDQ0NDQ0NDQsInVzZXJSb2xlIjoiY3VzdG9tZXIiLCJpYXQiOjE3MTMzNTQ3NzMsImV4cCI6MTc0NDkxMjM3M30.ovt9o18AQvpQ747fIKyx4ZeagJLeyHIGnnLpZcZLqBk"
}
]
}
]
}
1 change: 1 addition & 0 deletions tests/ApiSecondTest.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ test('Login', async() =>{
const email = "anshika222@gmail.com";
const productName = 'ADIDAS ORIGINAL';
const page = await webContext.newPage();

await page.goto("https://rahulshettyacademy.com/client");
const products =await page.locator(".card-body");
const titles = await page.locator(".card-body b").allTextContents();
Expand Down

0 comments on commit 0272cb4

Please sign in to comment.