From 54257c28657133720f9d9bb1533a207d2cd7d3e9 Mon Sep 17 00:00:00 2001 From: Paul Fitzpatrick Date: Thu, 16 May 2024 15:34:32 -0400 Subject: [PATCH] rebase and tweak test to handle initial UI instability --- test/nbrowser/AdminPanel.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/nbrowser/AdminPanel.ts b/test/nbrowser/AdminPanel.ts index f048192b..72ca0909 100644 --- a/test/nbrowser/AdminPanel.ts +++ b/test/nbrowser/AdminPanel.ts @@ -196,9 +196,11 @@ describe('AdminPanel', function() { it('should show various self checks', async function() { await driver.get(`${server.getHost()}/admin`); await waitForAdminPanel(); - assert.equal(await driver.find('.test-admin-panel-item-name-probe-reachable').isDisplayed(), true); await gu.waitToPass( - async () => assert.match(await driver.find('.test-admin-panel-item-value-probe-reachable').getText(), /✅/), + async () => { + assert.equal(await driver.find('.test-admin-panel-item-name-probe-reachable').isDisplayed(), true); + assert.match(await driver.find('.test-admin-panel-item-value-probe-reachable').getText(), /✅/); + }, 3000, ); assert.equal(await driver.find('.test-admin-panel-item-name-probe-system-user').isDisplayed(), true);