Browse Source

test: erd rename for link name change

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5848/head
Raju Udava 1 year ago
parent
commit
4d284d2147
  1. 18
      tests/playwright/tests/db/features/erd.spec.ts

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

@ -188,33 +188,33 @@ test.describe('Erd', () => {
// Verify tables with default config
await erd.verifyColumns({
tableName: `country`,
columns: ['country_id', 'country', 'last_update', 'city_list'],
columns: ['country_id', 'country', 'last_update', 'cities'],
});
await erd.verifyColumns({
tableName: `city`,
columns: ['city_id', 'city', 'country_id', 'last_update', 'country', 'address_list'],
columns: ['city_id', 'city', 'country_id', 'last_update', 'country', 'addresses'],
});
// Verify with PK/FK disabled
await erd.clickShowPkAndFk();
await erd.verifyColumns({
tableName: `country`,
columns: ['country', 'last_update', 'city_list'],
columns: ['country', 'last_update', 'cities'],
});
await erd.verifyColumns({
tableName: `city`,
columns: ['city', 'last_update', 'country', 'address_list'],
columns: ['city', 'last_update', 'country', 'addresses'],
});
// Verify with all columns disabled
await erd.clickShowColumnNames();
await erd.verifyColumns({ tableName: `country`, columns: ['city_list'] });
await erd.verifyColumns({ tableName: `country`, columns: ['cities'] });
await erd.verifyColumns({
tableName: `city`,
columns: ['country', 'address_list'],
columns: ['country', 'addresses'],
});
// Enable All columns
@ -311,7 +311,7 @@ test.describe('Erd', () => {
});
});
const actorTableColumn = ['actor_id', 'first_name', 'last_name', 'last_update', 'film_list'];
const actorTableColumn = ['actor_id', 'first_name', 'last_name', 'last_update', 'films'];
const mysqlPaymentTableColumns = [
'payment_id',
@ -338,9 +338,9 @@ const pgPaymentTableColumns = [
'staff',
];
const actorLTARColumns = ['filmactor_list', 'film_list'];
const actorLTARColumns = ['filmactors', 'films'];
const actorNonPkFkColumns = ['first_name', 'last_name', 'last_update', 'film_list', 'filmactor_list'];
const actorNonPkFkColumns = ['first_name', 'last_name', 'last_update', 'films', 'filmactors'];
const paymentLTARColumns = ['customer', 'rental', 'staff'];

Loading…
Cancel
Save