Skip to content

Commit 2c70389

Browse files
authored
Update bcpu.test.js
1 parent 6e452e3 commit 2c70389

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

tests/e2e/bcpu.test.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
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, select device MPW1 Gemini, and click on BCPU block', async () => {
5-
const app = await electron.launch({ args: ['main.js'], headless: false });
6-
const window = await app.firstWindow();
4+
// test('Launch Electron app, select device MPW1 Gemini, and click on BCPU block', async () => {
5+
// const app = await electron.launch({ args: ['main.js'], headless: false });
6+
// const window = await app.firstWindow();
77

8-
// Selecting MPW1 Gemini from device dropdown
9-
const deviceDropdown = await window.waitForSelector('#deviceId');
10-
await deviceDropdown.selectOption('MPW1');
8+
// // Selecting MPW1 Gemini from device dropdown
9+
// const deviceDropdown = await window.waitForSelector('#deviceId');
10+
// await deviceDropdown.selectOption('MPW1');
1111

12-
// Click on the BCPU block
13-
const bcpuSelector = '#app > div > div.top-row-container > div.main-table-container.main-border > div.top-l2 > div.top-l2-col1 > div.top-l2-col1-row1 > div:nth-child(2) > div';
14-
await window.click(bcpuSelector);
12+
// // Click on the BCPU block
13+
// const bcpuSelector = '#app > div > div.top-row-container > div.main-table-container.main-border > div.top-l2 > div.top-l2-col1 > div.top-l2-col1-row1 > div:nth-child(2) > div';
14+
// await window.click(bcpuSelector);
1515

16-
// Click on "Add" button
17-
const addButtonSelector = '#app > div > div.table-container.main-border > div > div.cpu-container > div.table-wrapper > button';
18-
await window.waitForSelector(addButtonSelector, { state: 'visible' });
19-
await window.click(addButtonSelector);
16+
// // Click on "Add" button
17+
// const addButtonSelector = '#app > div > div.table-container.main-border > div > div.cpu-container > div.table-wrapper > button';
18+
// await window.waitForSelector(addButtonSelector, { state: 'visible' });
19+
// await window.click(addButtonSelector);
2020

21-
// Click on "OK" button
22-
const okButtonSelector = 'button.ant-btn-primary';
23-
await window.waitForSelector(okButtonSelector, { state: 'visible' });
24-
await window.click(okButtonSelector);
21+
// // Click on "OK" button
22+
// const okButtonSelector = 'button.ant-btn-primary';
23+
// await window.waitForSelector(okButtonSelector, { state: 'visible' });
24+
// await window.click(okButtonSelector);
2525

26-
// Click on Peripherals tab
27-
const peripheralsTabSelector = '#app > div > div.top-row-container > div.main-table-container.main-border > div.top-l2 > div.top-l2-col1 > div:nth-child(3)';
28-
await window.click(peripheralsTabSelector);
26+
// // Click on Peripherals tab
27+
// const peripheralsTabSelector = '#app > div > div.top-row-container > div.main-table-container.main-border > div.top-l2 > div.top-l2-col1 > div:nth-child(3)';
28+
// await window.click(peripheralsTabSelector);
2929

30-
// Check SPI/QSPI block
31-
const spiQspiCheckSelector = '#\\30';
32-
await window.click(spiQspiCheckSelector);
30+
// // Check SPI/QSPI block
31+
// const spiQspiCheckSelector = '#\\30';
32+
// await window.click(spiQspiCheckSelector);
3333

34-
console.log('BCPU power verified.');
34+
// console.log('BCPU power verified.');
3535

36-
// Close the app
37-
await app.close();
38-
});
36+
// // Close the app
37+
// await app.close();
38+
// });

0 commit comments

Comments
 (0)