mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Skipping tests that can't be run on external server.
This commit is contained in:
@@ -70,6 +70,9 @@ describe('ReferenceColumns', function() {
|
||||
});
|
||||
|
||||
it('should allow entering numeric id before target table is loaded', async function() {
|
||||
if (server.isExternalServer()) {
|
||||
this.skip();
|
||||
}
|
||||
// Refresh the document.
|
||||
await driver.navigate().refresh();
|
||||
await gu.waitForDocToLoad();
|
||||
|
||||
@@ -298,6 +298,9 @@ describe('ReferenceList', function() {
|
||||
});
|
||||
|
||||
it('should allow entering numeric id before target table is loaded', async function() {
|
||||
if (server.isExternalServer()) {
|
||||
this.skip();
|
||||
}
|
||||
// Refresh the document.
|
||||
await driver.navigate().refresh();
|
||||
await gu.waitForDocToLoad();
|
||||
|
||||
@@ -176,6 +176,9 @@ export class TestServerMerged implements IMochaServer {
|
||||
* request takes a long time.
|
||||
*/
|
||||
public async pauseUntil(callback: () => Promise<void>) {
|
||||
if (this.isExternalServer()) {
|
||||
throw new Error("Can't pause external server");
|
||||
}
|
||||
log.info("Pausing node server");
|
||||
this._server.kill('SIGSTOP');
|
||||
try {
|
||||
|
||||
@@ -64,4 +64,4 @@ TEST_ADD_SAMPLES=1 TEST_ACCOUNT_PASSWORD=not-needed \
|
||||
GRIST_SESSION_COOKIE=grist_test_cookie \
|
||||
GRIST_TEST_LOGIN=1 \
|
||||
NODE_PATH=_build:_build/stubs \
|
||||
$MOCHA _build/test/nbrowser/*.js "$@"
|
||||
$MOCHA _build/test/nbrowser/*.js -g ${GREP_TESTS:-''} "$@"
|
||||
|
||||
Reference in New Issue
Block a user