Skip to content

Commit

Permalink
rebase and tweak test to handle initial UI instability
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed May 16, 2024
1 parent bc4a8a9 commit 54257c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/nbrowser/AdminPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 54257c2

Please sign in to comment.