-
-
-
-
-
-`;
-/**
- * @copyright Copyright (c) 2021, Xgene Cloud Ltd
- *
- * @author Naveen MR
- * @author Pranav C Balan
- * @author Wing-Kam Wong
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- *
- */
diff --git a/packages/nocodb/src/lib/services/user/ui/auth/resetPassword.ts b/packages/nocodb/src/lib/services/user/ui/auth/resetPassword.ts
deleted file mode 100644
index 36ce73b3e3..0000000000
--- a/packages/nocodb/src/lib/services/user/ui/auth/resetPassword.ts
+++ /dev/null
@@ -1,128 +0,0 @@
-export default `
-
-
- NocoDB - Reset Password
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-`;
-/**
- * @copyright Copyright (c) 2021, Xgene Cloud Ltd
- *
- * @author Naveen MR
- * @author Pranav C Balan
- * @author Wing-Kam Wong
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- *
- */
diff --git a/packages/nocodb/src/lib/services/user/ui/emailTemplates/forgotPassword.ts b/packages/nocodb/src/lib/services/user/ui/emailTemplates/forgotPassword.ts
deleted file mode 100644
index ad431383fd..0000000000
--- a/packages/nocodb/src/lib/services/user/ui/emailTemplates/forgotPassword.ts
+++ /dev/null
@@ -1,193 +0,0 @@
-export default `
-
-
-
-
- Simple Transactional Email
-
-
-
-This is preheader text. Some clients will show this text as a preview.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Hi,
-
To change your NocoDB account password click the following link.
-
-
-`;
-/**
- * @copyright Copyright (c) 2021, Xgene Cloud Ltd
- *
- * @author Naveen MR
- * @author Pranav C Balan
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- *
- */
diff --git a/packages/nocodb/src/lib/services/user/ui/emailTemplates/invite.ts b/packages/nocodb/src/lib/services/user/ui/emailTemplates/invite.ts
deleted file mode 100644
index 8e143bd938..0000000000
--- a/packages/nocodb/src/lib/services/user/ui/emailTemplates/invite.ts
+++ /dev/null
@@ -1,231 +0,0 @@
-export default `
-
-
-
-
- Simple Transactional Email
-
-
-
-This is preheader text. Some clients will show this text as a preview.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Hi,
-
- I invited you to be "<%- roles -%>" of the NocoDB project "<%- projectName %>".
- Click the button below to to accept my invitation.
-
-
-`;
-
-/**
- * @copyright Copyright (c) 2021, Xgene Cloud Ltd
- *
- * @author Naveen MR
- * @author Pranav C Balan
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- *
- */
diff --git a/packages/nocodb/src/lib/services/user/ui/emailTemplates/verify.ts b/packages/nocodb/src/lib/services/user/ui/emailTemplates/verify.ts
deleted file mode 100644
index 6b5e76ab54..0000000000
--- a/packages/nocodb/src/lib/services/user/ui/emailTemplates/verify.ts
+++ /dev/null
@@ -1,230 +0,0 @@
-export default `
-
-
-
-
- Simple Transactional Email
-
-
-
-This is preheader text. Some clients will show this text as a preview.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Hi,
-
- Please verify your email address by clicking the following button.
-
-
-`;
-
-/**
- * @copyright Copyright (c) 2021, Xgene Cloud Ltd
- *
- * @author Naveen MR
- * @author Pranav C Balan
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- *
- */
diff --git a/packages/nocodb/src/lib/utils/NcConfigFactory.ts b/packages/nocodb/src/lib/utils/NcConfigFactory.ts
index b157762fac..75c7924475 100644
--- a/packages/nocodb/src/lib/utils/NcConfigFactory.ts
+++ b/packages/nocodb/src/lib/utils/NcConfigFactory.ts
@@ -590,10 +590,6 @@ export default class NcConfigFactory implements NcConfig {
...args.meta.db,
connection: args.meta.db,
});
- if (process.env['TEST'] === 'true') {
- await metaSqlClient.raw('PRAGMA journal_mode=WAL');
- await metaSqlClient.raw('PRAGMA busy_timeout=60000');
- }
await metaSqlClient.createDatabaseIfNotExists({
database: args.meta.db?.connection?.filename,
});
@@ -630,7 +626,7 @@ export default class NcConfigFactory implements NcConfig {
db: {
client: 'sqlite3',
connection: {
- filename: process.env['TEST'] !== 'true' ? 'noco.db' : 'test_noco.db',
+ filename: 'noco.db',
},
},
};
diff --git a/packages/nocodb/src/run/testDocker.ts b/packages/nocodb/src/run/testDocker.ts
new file mode 100644
index 0000000000..729b9c6922
--- /dev/null
+++ b/packages/nocodb/src/run/testDocker.ts
@@ -0,0 +1,65 @@
+import axios from 'axios';
+import cors from 'cors';
+import express from 'express';
+
+import Noco from '../lib/Noco';
+import User from '../lib/models/User';
+process.env.NC_VERSION = '0009044';
+
+const server = express();
+server.enable('trust proxy');
+server.disable('etag');
+server.disable('x-powered-by');
+server.use(
+ cors({
+ exposedHeaders: 'xc-db-response',
+ })
+);
+
+server.set('view engine', 'ejs');
+
+process.env[`DEBUG`] = 'xc*';
+
+(async () => {
+ const httpServer = server.listen(process.env.PORT || 8080, () => {
+ console.log(`App started successfully.\nVisit -> ${Noco.dashboardUrl}`);
+ });
+ server.use(await Noco.init({}, httpServer, server));
+
+ // Wait for 0.5 seconds for the server to start
+ await new Promise((resolve) => setTimeout(resolve, 500));
+
+ if (!(await User.getByEmail('user@nocodb.com'))) {
+ const response = await axios.post(
+ `http://localhost:${process.env.PORT || 8080}/api/v1/auth/user/signup`,
+ {
+ email: 'user@nocodb.com',
+ password: 'Password123.',
+ }
+ );
+ console.log(response.data);
+ }
+})().catch((e) => console.log(e));
+
+/**
+ * @copyright Copyright (c) 2021, Xgene Cloud Ltd
+ *
+ * @author Naveen MR
+ * @author Pranav C Balan
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ *
+ */
diff --git a/scripts/playwright/pages/Dashboard/Grid/index.ts b/scripts/playwright/pages/Dashboard/Grid/index.ts
index 37b0af7b0c..9fdfb89bd7 100644
--- a/scripts/playwright/pages/Dashboard/Grid/index.ts
+++ b/scripts/playwright/pages/Dashboard/Grid/index.ts
@@ -66,7 +66,7 @@ export class GridPage extends BasePage {
const rowCount = await this.get().locator(".nc-grid-row").count();
await this.get().locator(".nc-grid-add-new-cell").click();
- expect
+ await expect
.poll(async () => await this.get().locator(".nc-grid-row").count())
.toBe(rowCount + 1);
diff --git a/scripts/playwright/tests/linkToAnotherRecord.spec.ts b/scripts/playwright/tests/linkToAnotherRecord.spec.ts
index 1cfbbec264..a67525ea2c 100644
--- a/scripts/playwright/tests/linkToAnotherRecord.spec.ts
+++ b/scripts/playwright/tests/linkToAnotherRecord.spec.ts
@@ -2,7 +2,7 @@ import { test } from "@playwright/test";
import { DashboardPage } from "../pages/Dashboard";
import setup from "../setup";
-test.describe("LTAR create & update", () => {
+test.describe.only("LTAR create & update", () => {
let dashboard: DashboardPage;
let context: any;