Browse Source

fix(nc-gui): Fixed issue with project duplicate test and import test, and made import label correct for OSS

pull/6370/head
Muhammed Mustafa 1 year ago
parent
commit
0e6d23e63a
  1. 2
      packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue
  2. 4
      tests/playwright/setup/index.ts

2
packages/nc-gui/components/dashboard/TreeView/BaseOptions.vue

@ -62,7 +62,7 @@ function openQuickImportDialog(type: string) {
<template #title>
<GeneralIcon icon="download" />
{{ $t('title.quickImportFrom') }}
{{ $t('labels.importData') }}
</template>
<template #expandIcon></template>

4
tests/playwright/setup/index.ts

@ -342,7 +342,7 @@ const setup = async ({
url?: string;
}): Promise<NcContext> => {
let dbType = process.env.CI ? process.env.E2E_DB_TYPE : process.env.E2E_DEV_DB_TYPE;
dbType = dbType || 'sqlite';
dbType = dbType || (isEE() ? 'pg' : 'sqlite');
let response;
@ -380,7 +380,7 @@ const setup = async ({
}
if (response.status !== 200 || !response.data?.token || !response.data?.project) {
console.error('Failed to reset test data', response.data, response.status);
console.error('Failed to reset test data', response.data, response.status, enableLocalInit, dbType);
throw new Error('Failed to reset test data');
}
const token = response.data.token;

Loading…
Cancel
Save