Browse Source

fix: Fixed test for ERD

pull/6782/head
Muhammed Mustafa 1 year ago
parent
commit
fcbf511bfd
  1. 5
      tests/playwright/tests/db/features/erd.spec.ts

5
tests/playwright/tests/db/features/erd.spec.ts

@ -61,6 +61,8 @@ test.describe('Erd', () => {
const erd = dashboard.details.relations; const erd = dashboard.details.relations;
await erd.clickShowColumnNames();
if (isPg(context)) { if (isPg(context)) {
await erd.verifyNodesCount(sakilaTables.length); await erd.verifyNodesCount(sakilaTables.length);
await erd.verifyEdgesCount({ await erd.verifyEdgesCount({
@ -181,7 +183,6 @@ test.describe('Erd', () => {
await openErdOfATable('Country'); await openErdOfATable('Country');
const erd = dashboard.details.relations; const erd = dashboard.details.relations;
await erd.clickShowColumnNames();
// Verify tables with default config // Verify tables with default config
await erd.verifyColumns({ await erd.verifyColumns({
tableName: `country`, tableName: `country`,
@ -224,7 +225,6 @@ test.describe('Erd', () => {
// Verify // Verify
await dashboard.grid.topbar.btn_details.click(); await dashboard.grid.topbar.btn_details.click();
await openErdOfATable('Country'); await openErdOfATable('Country');
await erd.clickShowColumnNames();
await erd.verifyNode({ await erd.verifyNode({
tableName: `country`, tableName: `country`,
@ -245,7 +245,6 @@ test.describe('Erd', () => {
// Verify // Verify
await dashboard.grid.topbar.btn_details.click(); await dashboard.grid.topbar.btn_details.click();
await openErdOfATable('Country'); await openErdOfATable('Country');
await erd.clickShowColumnNames();
await erd.verifyNode({ await erd.verifyNode({
tableName: `country`, tableName: `country`,

Loading…
Cancel
Save