rebase and tweak test to handle initial UI instability

This commit is contained in:
Paul Fitzpatrick 2024-05-16 15:34:32 -04:00
parent bc4a8a9095
commit 54257c2865
No known key found for this signature in database
GPG Key ID: 07F16BF3214888F6

View File

@ -196,9 +196,11 @@ describe('AdminPanel', function() {
it('should show various self checks', async function() { it('should show various self checks', async function() {
await driver.get(`${server.getHost()}/admin`); await driver.get(`${server.getHost()}/admin`);
await waitForAdminPanel(); await waitForAdminPanel();
assert.equal(await driver.find('.test-admin-panel-item-name-probe-reachable').isDisplayed(), true);
await gu.waitToPass( 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, 3000,
); );
assert.equal(await driver.find('.test-admin-panel-item-name-probe-system-user').isDisplayed(), true); assert.equal(await driver.find('.test-admin-panel-item-name-probe-system-user').isDisplayed(), true);