gristlabs_grist-core/test/nbrowser/Health.ntest.js

18 lines
496 B
JavaScript
Raw Normal View History

import { assert, driver } from 'mocha-webdriver';
import { gu, server, test } from 'test/nbrowser/gristUtil-nbrowser';
describe('Health.ntest', function() {
test.setupTestSuite(this);
before(async function() {
await gu.supportOldTimeyTestCode();
});
it('make sure the health check endpoint returns something', async function() {
await driver.get(server.getHost() + "/status")
const txt = await driver.getPageSource();
assert.match(txt, /Grist .* is alive/);
});
});