Skip to content

Commit 20a13d4

Browse files
Merge pull request #139 from Chia-Network/20250214-update-nightly-ubuntu-libs
Update ubuntu libs in nightly
2 parents 56dcd0b + 07b691a commit 20a13d4

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

.github/workflows/nightly-dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
if: env.SKIP != 'true'
7979
run: |
8080
sudo apt update
81-
sudo apt-get install -qy xvfb libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libasound2
81+
sudo apt-get install -qy xvfb libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libasound2t64
8282
xvfb-run -a ./test/test.sh
8383
- name: Cleanup xvfb pidx
8484
if: env.SKIP != 'true'

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Run headless test
5353
run: |
5454
sudo apt update
55-
sudo apt-get install -qy xvfb libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libasound2
55+
sudo apt-get install -qy xvfb libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libasound2t64
5656
xvfb-run -a ./test/test.sh
5757
5858
- name: Cleanup xvfb pidx

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- name: Run headless test
5555
run: |
5656
sudo apt update
57-
sudo apt-get install -qy xvfb libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libasound2
57+
sudo apt-get install -qy xvfb libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libgbm-dev libasound2t64
5858
xvfb-run -a ./test/test.sh
5959
6060
- name: Cleanup xvfb pidx

test/test/test.js

+23-7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const driver = new Builder()
1111

1212
const baseUrl = "http://localhost:8080";
1313
const password = "739f75e86e8d7843df146bac";
14+
const clickTries = 5;
1415

1516
let login = async function() {
1617
let loginContainer = By.css('.login-form');
@@ -196,8 +197,24 @@ async function performCommand(cmd) {
196197
}
197198

198199
async function clickStepInto() {
199-
let stepIntoButton = await driver.wait(until.elementLocated(By.css(".codicon-debug-step-into")));
200-
await stepIntoButton.click();
200+
let clicked = false;
201+
202+
// Try a number of times to click the step into button. We sometimes get a stale reference here
203+
// because the UI is refreshed async. We'll try a few times before concluding that something
204+
// went wrong.
205+
for (var i = 0; !clicked && i < clickTries; i++) {
206+
let stepIntoButton = await driver.wait(until.elementLocated(By.css(".codicon-debug-step-into")));
207+
try {
208+
// This reference could be stale due to asynchronous action in the browser.
209+
await stepIntoButton.click();
210+
clicked = true;
211+
} catch (e) {
212+
console.log(`Stale reference error clicking step into, trying again ${i}/${clickTries}`);
213+
}
214+
}
215+
if (!clicked) {
216+
throw new Exception('Too many tries to click advance without success');
217+
}
201218
await wait(1.0);
202219
}
203220

@@ -384,13 +401,12 @@ describe("Basic element tests", function() {
384401

385402
// Pgup right 7 space QQEX C-f defun-inline C-f logand right 6 Q
386403
// find a monaco-list-rows with a descendant that contains QQEX.
387-
await sendPgUp();
388-
await sendRight(7);
404+
await findString(driver, 'two three');
405+
await sendRight(1);
389406
await sendString(" QQEX");
390407

391-
await findString(driver, 'defun-inline');
392-
await findString(driver, 'logand');
393-
await sendRight(5);
408+
await findString(driver, '(odd X');
409+
await sendRight(1);
394410
await sendString(" Q");
395411

396412
let monacoLists = await driver.findElements(By.css(".monaco-list"));

0 commit comments

Comments
 (0)