Browse Source

fix(test): Moved playwright folder from nc-gui

pull/4376/head
Muhammed Mustafa 2 years ago
parent
commit
8149867db6
  1. 2
      tests/playwright/setup/db.ts
  2. 2
      tests/playwright/tests/language.spec.ts

2
tests/playwright/setup/db.ts

@ -53,7 +53,7 @@ const mysqlExec = async query => {
async function sqliteExec(query) {
const parallelIndex = process.env.TEST_PARALLEL_INDEX;
const rootProjectDir = __dirname.replace('/packages/nc-gui/tests/playwright/setup', '');
const rootProjectDir = __dirname.replace('/tests/playwright/setup', '');
await sqliteDb.open(`${rootProjectDir}/packages/nocodb/test_sakila_${parallelIndex}.db`);
await sqliteDb.run(query);

2
tests/playwright/tests/language.spec.ts

@ -55,7 +55,7 @@ test.describe('Common', () => {
// Index is the order in which menu options appear
for (let i = 1; i < langMenu.length; i++) {
// scripts/playwright/tests/language.spec.ts
const json = require(`../../../lang/${langMenu[i]}`);
const json = require(`../../../packages/nc-gui/lang/${langMenu[i]}`);
await projectsPage.openLanguageMenu();
await projectsPage.selectLanguage({ index: i });
await projectsPage.verifyLanguage({ json });

Loading…
Cancel
Save