Skip to content

Commit

Permalink
tweak admin test to also work under grist-core settings (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz authored Apr 30, 2024
1 parent 87c0c51 commit b980894
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/nbrowser/AdminPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit b980894

Please sign in to comment.