Skip to content

Commit 452861f

Browse files
authored
Update fle.test.js
1 parent a86c7ff commit 452861f

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

tests/e2e/fle.test.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
const { _electron: electron } = require('playwright');
2-
const { test, expect } = require('@playwright/test');
1+
// const { _electron: electron } = require('playwright');
2+
// const { test, expect } = require('@playwright/test');
33

4-
test('Launch Electron app and click on FLE block', async () => {
5-
const app = await electron.launch({ args: ['main.js'] });
4+
// test('Launch Electron app and click on FLE block', async () => {
5+
// const app = await electron.launch({ args: ['main.js'] });
66

7-
const window = await app.firstWindow();
7+
// const window = await app.firstWindow();
88

9-
// selecting the device (MPW1 Gemini)
10-
const deviceDropdown = await window.waitForSelector('#deviceId');
11-
await deviceDropdown.selectOption('MPW1');
12-
await new Promise((resolve) => setTimeout(resolve, 2000));
9+
// // selecting the device (MPW1 Gemini)
10+
// const deviceDropdown = await window.waitForSelector('#deviceId');
11+
// await deviceDropdown.selectOption('MPW1');
12+
// await new Promise((resolve) => setTimeout(resolve, 2000));
1313

14-
const fleBlock = await window.waitForSelector('#app > div > div.top-row-container > div.main-table-container.main-border > div.top-l2 > div.top-l2-col2 > div.top-l2-col2-elem > div > div:nth-child(2) > div:nth-child(2) > div');
15-
await fleBlock.click();
14+
// const fleBlock = await window.waitForSelector('#app > div > div.top-row-container > div.main-table-container.main-border > div.top-l2 > div.top-l2-col2 > div.top-l2-col2-elem > div > div:nth-child(2) > div:nth-child(2) > div');
15+
// await fleBlock.click();
1616

17-
const flePowerVisible = await window.isVisible('div.title-comp-total-text');
18-
expect(flePowerVisible).toBeTruthy();
17+
// const flePowerVisible = await window.isVisible('div.title-comp-total-text');
18+
// expect(flePowerVisible).toBeTruthy();
1919

20-
console.log('FLE block clicked and verified.');
20+
// console.log('FLE block clicked and verified.');
2121

22-
await new Promise((resolve) => setTimeout(resolve, 5000));
22+
// await new Promise((resolve) => setTimeout(resolve, 5000));
2323

24-
await app.close();
25-
});
24+
// await app.close();
25+
// });

0 commit comments

Comments
 (0)