-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
452861f
commit eddca70
Showing
2 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
// const { _electron: electron } = require('playwright'); | ||
// const { test, expect } = require('@playwright/test'); | ||
const { _electron: electron } = require('playwright'); | ||
const { test, expect } = require('@playwright/test'); | ||
|
||
// test('Launch Electron app and click on FLE block', async () => { | ||
// const app = await electron.launch({ args: ['main.js'] }); | ||
test('Launch Electron app and click on FLE block', async () => { | ||
const app = await electron.launch({ args: ['main.js'] }); | ||
|
||
// const window = await app.firstWindow(); | ||
const window = await app.firstWindow(); | ||
|
||
// // selecting the device (MPW1 Gemini) | ||
// selecting the device (MPW1 Gemini) | ||
// const deviceDropdown = await window.waitForSelector('#deviceId'); | ||
// await deviceDropdown.selectOption('MPW1'); | ||
// await new Promise((resolve) => setTimeout(resolve, 2000)); | ||
|
||
// 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'); | ||
// await fleBlock.click(); | ||
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'); | ||
await fleBlock.click(); | ||
|
||
// const flePowerVisible = await window.isVisible('div.title-comp-total-text'); | ||
// expect(flePowerVisible).toBeTruthy(); | ||
const flePowerVisible = await window.isVisible('div.title-comp-total-text'); | ||
expect(flePowerVisible).toBeTruthy(); | ||
|
||
// console.log('FLE block clicked and verified.'); | ||
console.log('FLE block clicked and verified.'); | ||
|
||
// await new Promise((resolve) => setTimeout(resolve, 5000)); | ||
await new Promise((resolve) => setTimeout(resolve, 5000)); | ||
|
||
// await app.close(); | ||
// }); | ||
await app.close(); | ||
}); |