Skip to content

Commit fe7ff9d

Browse files
committed
Playwright with JavaScript Framework
1 parent 6fdd087 commit fe7ff9d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Playwright-JavaScript/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ node_modules/
77
/e2e-junit-results.xml
88
/Test_Case_Status.xlsx
99
/README.md
10-
/allure-results
10+
/allure-results
11+
/logs

Playwright-JavaScript/tests/01_UI_Tests.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ test('[2] UI automation test using playwright', { tag: '@UITest' }, async ({ pag
3434
test('[9, 12, 14] Verify excel data using playwright', { tag: '@ValidateExcel' }, async ({ page }) => {
3535
const filePath = path.join(__dirname, process.env.DOWNLOAD_PATH);
3636
const workbook = xlsx.readFile(filePath);
37-
const worksheet = workbook.Sheets[process.env.Sheet1];
37+
console.log(`Sheet name : ${process.env.SHEET1}`);
38+
39+
const worksheet = workbook.Sheets[process.env.SHEET1];
3840
const data = xlsx.utils.sheet_to_json(worksheet);
41+
console.log(`Number of rows : ${data.length}`);
3942

4043
expect(data.length).toBeGreaterThan(0);
4144
for (const row of data) {

0 commit comments

Comments
 (0)