Browse Source

feat(nc-gui): Removed projection creation logic from ERD tests

pull/3612/head
Muhammed Mustafa 2 years ago
parent
commit
9c784e4b51
  1. 3
      packages/nc-gui/components/erd/TableNode.vue
  2. 10
      scripts/cypress/integration/common/9b_ERD.js

3
packages/nc-gui/components/erd/TableNode.vue

@ -17,6 +17,8 @@ const { data } = toRefs(props)
provide(MetaInj, data as Ref<TableType>)
const { $e } = useNuxtApp()
const columns = computed(() => {
// Hide hm ltar created for `mm` relations
return data.value.columns?.filter((col) => !(col.uidt === UITypes.LinkToAnotherRecord && col.system === 1))
@ -44,6 +46,7 @@ const relatedColumnId = (col: Record<string, any>) =>
<div
class="h-full flex flex-col min-w-16 bg-gray-50 rounded-lg border-1 nc-erd-table-node"
:class="`nc-erd-table-node-${data.table_name}`"
@click="$e('c:erd:node-click')"
>
<GeneralTooltip modifier-key="Alt">
<template #title> {{ data.table_name }} </template>

10
scripts/cypress/integration/common/9b_ERD.js

@ -6,11 +6,11 @@ export const genTest = (apiType, dbType) => {
if (!isTestSuiteActive(apiType, dbType)) return;
describe(`${apiType.toUpperCase()} ERD`, () => {
before(() => {
loginPage.loginAndOpenProject(apiType, dbType);
cy.openTableTab("Country", 25);
cy.saveLocalStorage();
});
// before(() => {
// loginPage.loginAndOpenProject(apiType, dbType);
// cy.openTableTab("Country", 25);
// cy.saveLocalStorage();
// });
beforeEach(() => {
cy.restoreLocalStorage();

Loading…
Cancel
Save