tweak admin test to also work under grist-core settings (#960)

pull/959/head
Paul Fitzpatrick 2 weeks ago committed by GitHub
parent 87c0c5153d
commit b9808944d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -182,12 +182,14 @@ describe('AdminPanel', function() {
await waitForAdminPanel();
assert.equal(await driver.find('.test-admin-panel-item-sandboxing').isDisplayed(), true);
await gu.waitToPass(
async () => assert.match(await driver.find('.test-admin-panel-item-value-sandboxing').getText(), /^unknown/),
// unknown for grist-saas, unconfigured for grist-core.
async () => assert.match(await driver.find('.test-admin-panel-item-value-sandboxing').getText(),
/^((unknown)|(unconfigured))/),
3000,
);
// It would be good to test other scenarios, but we are using
// a multi-server setup and the sandbox test isn't useful there
// yet.
// a multi-server setup on grist-saas and the sandbox test isn't
// useful there yet.
});
const upperCheckNow = () => driver.find('.test-admin-panel-updates-upper-check-now');

Loading…
Cancel
Save