mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 03:35:37 +00:00
test (nc-gui): imports modal align tests
This commit is contained in:
@@ -403,7 +403,7 @@ const collapseKey = ref('')
|
||||
<a-input
|
||||
v-model:value="syncSource.details.syncSourceUrlOrId"
|
||||
placeholder="Paste the Base URL or Base ID from Airtable"
|
||||
class="!rounded-lg !mt-2"
|
||||
class="!rounded-lg !mt-2 nc-input-shared-base"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
||||
|
||||
@@ -1003,7 +1003,7 @@ const currentColumnToEdit = ref('');
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="relative group w-full flex items-center" @click="currentColumnToEdit = `${tableIdx}-${record.column_name}`">
|
||||
<span class="font-weight-500 max-w-[300px] inline-block truncate">
|
||||
<span class="font-weight-500 max-w-[300px] inline-block truncate nc-import-table-field-name">
|
||||
{{ record.title }}
|
||||
</span>
|
||||
<NcButton @click="currentColumnToEdit = `${tableIdx}-${record.column_name}`" type="text" size="small" class="!absolute right-0 top-1/2 transform -translate-y-1/2 opacity-0 group-hover:opacity-100 pointer-events-none group-hover:pointer-events-auto">
|
||||
|
||||
@@ -38,10 +38,12 @@ export class ImportTemplatePage extends BasePage {
|
||||
const columnList: { type: string; name: string }[] = [];
|
||||
const tr = this.get().locator(`tr.nc-table-row:visible`);
|
||||
const rowCount = await tr.count();
|
||||
for (let i = 0; i < rowCount; i++) {
|
||||
for (let i = 1; i < rowCount; i++) {
|
||||
// we start from 1 because the first tr holds the select all toggle
|
||||
// replace \n and \t from innerText
|
||||
const columnType = (await getTextExcludeIconText(tr.nth(i))).replace(/\n|\t/g, '');
|
||||
const columnName = await tr.nth(i).locator(`input[type="text"]`).inputValue();
|
||||
// const columnType = (await getTextExcludeIconText(tr.nth(i))).replace(/\n|\t/g, '');
|
||||
const columnType = 'SingleLineText'; // all columsn are treated as SingleLineText for now since we have removed the type column
|
||||
const columnName = await tr.nth(i).locator(`.nc-import-table-field-name`).textContent();
|
||||
columnList.push({ type: columnType, name: columnName });
|
||||
}
|
||||
return columnList;
|
||||
|
||||
Reference in New Issue
Block a user