Browse Source

chore: wait until db setup

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/6489/head
Pranav C 1 year ago
parent
commit
03f91aeb6e
  1. 8
      packages/nocodb/tests/unit/rest/tests/groupby.test.ts

8
packages/nocodb/tests/unit/rest/tests/groupby.test.ts

@ -257,6 +257,8 @@ function groupByTests() {
}); });
it('Check One GroupBy Column with BT Lookup', async function () { it('Check One GroupBy Column with BT Lookup', async function () {
await new Promise((resolve) => setTimeout(resolve, 20000));
await createLookupColumn(context, { await createLookupColumn(context, {
project: sakilaProject, project: sakilaProject,
title: 'LanguageName', title: 'LanguageName',
@ -276,7 +278,7 @@ function groupByTests() {
assert.match(response.body.list[0]['LanguageName'], /^English/); assert.match(response.body.list[0]['LanguageName'], /^English/);
expect(+response.body.list[0]['count']).to.equal(1000); expect(+response.body.list[0]['count']).to.equal(1000);
expect(response.body.list.length).to.equal(1); expect(response.body.list.length).to.equal(1);
}); }).timeout(60000);
it('Check One GroupBy Column with MM Lookup which is not supported', async function () { it('Check One GroupBy Column with MM Lookup which is not supported', async function () {
await createLookupColumn(context, { await createLookupColumn(context, {
@ -299,6 +301,8 @@ function groupByTests() {
}); });
it('Check One GroupBy Column with Formula and Formula referring another formula', async function () { it('Check One GroupBy Column with Formula and Formula referring another formula', async function () {
await new Promise((resolve) => setTimeout(resolve, 20000));
const formulaColumnTitle = 'Formula'; const formulaColumnTitle = 'Formula';
await createColumn(context, filmTable, { await createColumn(context, filmTable, {
uidt: UITypes.Formula, uidt: UITypes.Formula,
@ -344,7 +348,7 @@ function groupByTests() {
res.body.list[0][nestedFormulaColumnTitle], res.body.list[0][nestedFormulaColumnTitle],
); );
expect(+res.body.list[res.body.list.length - 1].count).to.equal(191); expect(+res.body.list[res.body.list.length - 1].count).to.equal(191);
}); }).timeout(60000);
} }
export default function () { export default function () {

Loading…
Cancel
Save