From 9ddbefe18f72bbca5ede9f8b63170cc55a16fa42 Mon Sep 17 00:00:00 2001 From: Yuliia Likhytska Date: Thu, 31 Aug 2023 19:39:29 +0200 Subject: [PATCH] #984: test cases --- test/type.automation.test.js | 58 +++++++++++++++++------------------- test/type.query.test.js | 4 +-- 2 files changed, 30 insertions(+), 32 deletions(-) diff --git a/test/type.automation.test.js b/test/type.automation.test.js index 7410c6086..bd5479b4f 100644 --- a/test/type.automation.test.js +++ b/test/type.automation.test.js @@ -49,7 +49,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 47, + 48, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -120,10 +120,9 @@ describe('type: automation', () => { ) ) ); - assert.equal( testUtils.getAPIHistoryLength(), - 25, + 40, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -192,7 +191,7 @@ describe('type: automation', () => { assert.equal( testUtils.getAPIHistoryLength(), - 33, + 48, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -260,7 +259,7 @@ describe('type: automation', () => { assert.equal( testUtils.getAPIHistoryLength(), - 29, + 44, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -296,7 +295,7 @@ describe('type: automation', () => { // check number of API calls assert.equal( testUtils.getAPIHistoryLength(), - 18, + 33, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -340,7 +339,7 @@ describe('type: automation', () => { // check number of API calls assert.equal( testUtils.getAPIHistoryLength(), - 40, + 70, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -384,7 +383,7 @@ describe('type: automation', () => { // check number of API calls assert.equal( testUtils.getAPIHistoryLength(), - 42, + 72, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -428,7 +427,7 @@ describe('type: automation', () => { // check number of API calls assert.equal( testUtils.getAPIHistoryLength(), - 43, + 73, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -468,7 +467,7 @@ describe('type: automation', () => { // check number of API calls assert.equal( testUtils.getAPIHistoryLength(), - 35, + 65, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -509,7 +508,7 @@ describe('type: automation', () => { // check number of API calls assert.equal( testUtils.getAPIHistoryLength(), - 41, + 71, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -550,7 +549,7 @@ describe('type: automation', () => { // check number of API calls assert.equal( testUtils.getAPIHistoryLength(), - 43, + 73, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -601,7 +600,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 20, + 35, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -652,7 +651,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 18, + 33, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -925,7 +924,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -961,7 +960,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -997,7 +996,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1033,7 +1032,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1069,7 +1068,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1111,7 +1110,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1151,7 +1150,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1191,7 +1190,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1233,7 +1232,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1271,7 +1270,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1307,7 +1306,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1386,7 +1385,6 @@ describe('type: automation', () => { 1, 'one automation key expected' ); - // console.log(testUtils.logAPIHistoryDebug()); assert.deepEqual( await testUtils.getActualJson( 'testExisting_automation_clearNotificationsAll', @@ -1398,7 +1396,7 @@ describe('type: automation', () => { assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1434,7 +1432,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1470,7 +1468,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -1502,7 +1500,7 @@ describe('type: automation', () => { ); assert.equal( testUtils.getAPIHistoryLength(), - 17, + 36, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; diff --git a/test/type.query.test.js b/test/type.query.test.js index 725cbf957..31fe795c3 100644 --- a/test/type.query.test.js +++ b/test/type.query.test.js @@ -458,7 +458,7 @@ describe('type: query', () => { // check number of API calls assert.equal( testUtils.getAPIHistoryLength(), - 63, + 64, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return; @@ -498,7 +498,7 @@ describe('type: query', () => { // check number of API calls assert.equal( testUtils.getAPIHistoryLength(), - 65, + 66, 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests' ); return;