|
|
@ -56,7 +56,7 @@ test.describe('Table Operations', () => { |
|
|
|
await dashboard.treeView.verifyTabIcon({ title: 'Address', icon: 'american-football' }); |
|
|
|
await dashboard.treeView.verifyTabIcon({ title: 'Address', icon: 'american-football' }); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
test('duplicate_table', async () => { |
|
|
|
test.only('duplicate_table', async () => { |
|
|
|
const orginalTableName = 'Actor'; |
|
|
|
const orginalTableName = 'Actor'; |
|
|
|
const dupTableName = 'Actor copy'; |
|
|
|
const dupTableName = 'Actor copy'; |
|
|
|
// verify table icon customization
|
|
|
|
// verify table icon customization
|
|
|
@ -79,20 +79,13 @@ test.describe('Table Operations', () => { |
|
|
|
orginalTable, |
|
|
|
orginalTable, |
|
|
|
duplicateTable, |
|
|
|
duplicateTable, |
|
|
|
undefined, |
|
|
|
undefined, |
|
|
|
new Set([ |
|
|
|
new Set(['.id', '.table_name', '.title', '.order', '.created_at', '.updated_at']) |
|
|
|
'.id', |
|
|
|
|
|
|
|
'.id.base_id.project_id.table_name', |
|
|
|
|
|
|
|
'.id.base_id.project_id.table_name.title', |
|
|
|
|
|
|
|
'.id.base_id.project_id.table_name.title.type.meta.schema.enabled.mm.tags.pinned.deleted.order', |
|
|
|
|
|
|
|
'.id.base_id.project_id.table_name.title.type.meta.schema.enabled.mm.tags.pinned.deleted.order.created_at', |
|
|
|
|
|
|
|
'.id.base_id.project_id.table_name.title.type.meta.schema.enabled.mm.tags.pinned.deleted.order.created_at.updated_at', |
|
|
|
|
|
|
|
]) |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
).toBeTruthy(); |
|
|
|
).toBeTruthy(); |
|
|
|
// check individual field values where values does not match as per design
|
|
|
|
// check individual field values where values does not match as per design
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
test('duplicate_table_with_no_data_views', async () => { |
|
|
|
test.only('duplicate_table_with_no_data_views', async () => { |
|
|
|
const orginalTableName = 'Actor'; |
|
|
|
const orginalTableName = 'Actor'; |
|
|
|
const dupTableName = 'Actor copy'; |
|
|
|
const dupTableName = 'Actor copy'; |
|
|
|
// verify table icon customization
|
|
|
|
// verify table icon customization
|
|
|
@ -120,28 +113,29 @@ test.describe('Table Operations', () => { |
|
|
|
new Set(['created_at']), |
|
|
|
new Set(['created_at']), |
|
|
|
new Set([ |
|
|
|
new Set([ |
|
|
|
'.table.id', |
|
|
|
'.table.id', |
|
|
|
'.table.id.base_id.project_id.table_name', |
|
|
|
'.table.table_name', |
|
|
|
'.table.id.base_id.project_id.table_name.title', |
|
|
|
'.table.title', |
|
|
|
'.table.id.base_id.project_id.table_name.title.type.meta.schema.enabled.mm.tags.pinned.deleted.order', |
|
|
|
'.table.order', |
|
|
|
'.table.id.base_id.project_id.table_name.title.type.meta.schema.enabled.mm.tags.pinned.deleted.order.created_at', |
|
|
|
'.table.created_at', |
|
|
|
'.table.id.base_id.project_id.table_name.title.type.meta.schema.enabled.mm.tags.pinned.deleted.order.created_at.updated_at', |
|
|
|
'.table.updated_at', |
|
|
|
'.table.shares.views.0.view.filters.sorts.firstPageData', |
|
|
|
'.views.0.view.ptn', |
|
|
|
'.table.shares.views.webhooks.firstPageData.list.pageInfo.totalRows', |
|
|
|
'.views.0.view._ptn', |
|
|
|
'.table.shares.views.0.view.ptn', |
|
|
|
'.views.0.view.ptn._ptn', |
|
|
|
'.table.id.base_id.project_id.table_name.title.type.meta.schema.enabled.mm.tags.pinned.deleted.order.updated_at', |
|
|
|
'.views.0.view.ptn._ptn.ptype.tn', |
|
|
|
'.table.shares.views.0.view.ptn._ptn', |
|
|
|
'.views.0.view.tn', |
|
|
|
'.table.shares.views.0.view.ptn._ptn.ptype.tn', |
|
|
|
'.views.0.view._tn', |
|
|
|
'.table.shares.views.0.view.ptn._ptn.ptype.tn._tn', |
|
|
|
'.views.0.view.id', |
|
|
|
'.table.shares.views.0.view.ptn._ptn.ptype.tn._tn.table_meta.id', |
|
|
|
'.views.0.view.view.fk_view_id', |
|
|
|
'.table.shares.views.0.view.ptn._ptn.ptype.tn._tn.table_meta.id.base_id.project_id.fk_model_id', |
|
|
|
'.views.0.view.view.updated_at', |
|
|
|
'.table.shares.views.0.view.ptn._ptn.ptype.tn._tn.table_meta.id.base_id.project_id.fk_model_id.title', |
|
|
|
'.views.0.view.fk_model_id', |
|
|
|
'.table.shares.views.0.view.ptn._ptn.ptype.tn._tn.table_meta.id.base_id.project_id.fk_model_id.title.type.is_default.show_system_fields.lock_type.uuid.password.show.order.updated_at', |
|
|
|
'.views.0.view.title', |
|
|
|
'.table.shares.views.0.view.ptn._ptn.ptype.tn._tn.table_meta.id.base_id.project_id.fk_model_id.title.type.is_default.show_system_fields.lock_type.uuid.password.show.order.updated_at.meta.description.view.fk_view_id', |
|
|
|
'.views.0.view.updated_at', |
|
|
|
'.table.shares.views.0.view.ptn._ptn.ptype.tn._tn.table_meta.id.base_id.project_id.fk_model_id.title.type.is_default.show_system_fields.lock_type.uuid.password.show.order.updated_at.meta.description.view.fk_view_id.base_id.project_id.uuid.updated_at', |
|
|
|
'.views.0.view.fk_view_id', |
|
|
|
'.table.shares.views.webhooks.firstPageData.list.pageInfo.totalRows.page.pageSize.isFirstPage.isLastPage', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Mismatch length key:
|
|
|
|
// Mismatch length key:
|
|
|
|
'.table.shares.views.webhooks.firstPageData.list', |
|
|
|
'.firstPageData.list', |
|
|
|
|
|
|
|
'.firstPageData.pageInfo', |
|
|
|
|
|
|
|
'.views.0.firstPageData', |
|
|
|
]) |
|
|
|
]) |
|
|
|
) |
|
|
|
) |
|
|
|
).toBeTruthy(); |
|
|
|
).toBeTruthy(); |
|
|
|