Skip to content

Commit 3d85f03

Browse files
committed
no errors found now
1 parent bcd8a1b commit 3d85f03

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,4 @@
131131
"type": "git",
132132
"url": "https://github.com/os-fpga/rapid_power_estimator.git"
133133
}
134-
}
134+
}

tests/e2e/acpu.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test('Launch Electron app, select device, toggle ACPU power, and click Add slowl
2727
await new Promise((resolve) => setTimeout(resolve, 2000));
2828

2929
// Click OK in the popup
30-
const okButton = await window.waitForSelector('body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-ni1kz0.ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid');
30+
const okButton = await window.waitForSelector('body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-apn68.ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid > span');
3131
await okButton.click();
3232
await new Promise((resolve) => setTimeout(resolve, 2000));
3333

tests/e2e/clocking.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test('Launch Electron app, select device, toggle ACPU power, click Clocking, Add
4141
await new Promise((resolve) => setTimeout(resolve, 1000)); // Wait for 1 second
4242

4343
// Clicking OK to submit the form
44-
const okButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-ni1kz0.ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid';
44+
const okButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-apn68.ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid';
4545
const okButton = await window.waitForSelector(okButtonSelector);
4646
await okButton.click();
4747

tests/e2e/dsp.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ test('Launch Electron app, add clocking source, navigate to DSP block, configure
4141
await new Promise((resolve) => setTimeout(resolve, 1000)); // Wait for 1 second
4242

4343
// Clicking OK to submit the clocking form
44-
const okButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-ni1kz0.ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid';
44+
const okButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-apn68.ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid';
4545
const okButton = await window.waitForSelector(okButtonSelector);
4646
await okButton.click();
4747
await new Promise((resolve) => setTimeout(resolve, 2000)); // Wait for the form to submit
4848

49+
4950
// Navigate to the DSP block
5051
const dspBlockSelector = '#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(3) > div:nth-child(2) > div';
5152
const dspBlock = await window.waitForSelector(dspBlockSelector);
@@ -95,7 +96,7 @@ test('Launch Electron app, add clocking source, navigate to DSP block, configure
9596
// Take note of the DSP power generated (assuming it's shown in the UI somewhere, you can add the selector for DSP power if needed)
9697

9798
// Clicking OK to submit the DSP form
98-
const dspOkButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-ni1kz0.ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid';
99+
const dspOkButtonSelector = 'body > div:nth-child(3) > div > div.ant-modal-wrap > div > div:nth-child(1) > div > div.ant-modal-footer > button.ant-btn.css-dev-only-do-not-override-apn68.ant-btn-primary.ant-btn-color-primary.ant-btn-variant-solid';
99100
const dspOkButton = await window.waitForSelector(dspOkButtonSelector);
100101
await dspOkButton.click();
101102
await new Promise((resolve) => setTimeout(resolve, 2000)); // Wait for the form to submit

0 commit comments

Comments
 (0)