Skipping tests that can't be run on external server.

This commit is contained in:
Jarosław Sadziński
2022-08-12 17:23:22 +02:00
parent 09db2253e4
commit 22ed7d3024
5 changed files with 11 additions and 2 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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 {

View File

@@ -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:-''} "$@"