Browse Source

test: LinkToAnotherRecord to Links

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5848/head
Raju Udava 1 year ago committed by Pranav C
parent
commit
54d1277d10
  1. 2
      tests/playwright/pages/Dashboard/Grid/Column/index.ts
  2. 2
      tests/playwright/pages/Dashboard/common/Cell/index.ts
  3. 4
      tests/playwright/quickTests/commonTest.ts
  4. 2
      tests/playwright/tests/db/01-webhook.spec.ts
  5. 6
      tests/playwright/tests/db/columnLinkToAnotherRecord.spec.ts
  6. 2
      tests/playwright/tests/db/filters.spec.ts
  7. 6
      tests/playwright/tests/db/megaTable.spec.ts
  8. 12
      tests/playwright/tests/db/metaLTAR.spec.ts
  9. 2
      tests/playwright/tests/db/undo-redo.spec.ts
  10. 2
      tests/playwright/tests/db/viewForm.spec.ts

2
tests/playwright/pages/Dashboard/Grid/Column/index.ts

@ -162,7 +162,7 @@ export class ColumnPageObject extends BasePage {
.nth(0)
.click();
break;
case 'LinkToAnotherRecord':
case 'Links':
await this.get()
.locator('.nc-ltar-relation-type >> .ant-radio')
.nth(relationType === 'Has Many' ? 0 : 1)

2
tests/playwright/pages/Dashboard/common/Cell/index.ts

@ -364,7 +364,7 @@ export class CellPageObject extends BasePage {
// PR8504
// await expect(await vCell.locator('.nc-action-icon.nc-arrow-expand:visible')).toHaveCount(1);
const linkText = await getTextExcludeIconText(vCell);
expect(linkText).toContain('1 Link');
expect(linkText).toContain('1 City');
// PR8504
// await vCell.click();

4
tests/playwright/quickTests/commonTest.ts

@ -99,7 +99,7 @@ const quickVerify = async ({
rating: recordsVirtualCells.Rating,
});
// LinkToAnotherRecord
// Links
await dashboard.grid.cell.verifyVirtualCell({
index: cellIndex,
columnHeader: 'Actor',
@ -121,7 +121,7 @@ const quickVerify = async ({
value: recordsVirtualCells.Computation,
});
// LinkToAnotherRecord
// Links
await dashboard.grid.cell.verifyVirtualCell({
index: cellIndex,
columnHeader: 'Producer',

2
tests/playwright/tests/db/01-webhook.spec.ts

@ -613,7 +613,7 @@ test.describe.serial('Webhook', () => {
countryTable = await api.dbTableColumn.create(countryTable.id, {
column_name: 'CityList',
title: 'CityList',
uidt: UITypes.LinkToAnotherRecord,
uidt: UITypes.Links,
parentId: countryTable.id,
childId: cityTable.id,
type: 'hm',

6
tests/playwright/tests/db/columnLinkToAnotherRecord.spec.ts

@ -31,13 +31,13 @@ test.describe('LTAR create & update', () => {
// Create LTAR-HM column
await dashboard.grid.column.create({
title: 'Link1-2hm',
type: 'LinkToAnotherRecord',
type: 'Links',
childTable: 'Sheet2',
relationType: 'Has Many',
});
await dashboard.grid.column.create({
title: 'Link1-2mm',
type: 'LinkToAnotherRecord',
type: 'Links',
childTable: 'Sheet2',
relationType: 'Many To many',
});
@ -46,7 +46,7 @@ test.describe('LTAR create & update', () => {
await dashboard.treeView.openTable({ title: 'Sheet2', networkResponse: false });
await dashboard.grid.column.create({
title: 'Link2-1hm',
type: 'LinkToAnotherRecord',
type: 'Links',
childTable: 'Sheet1',
relationType: 'Has Many',
});

2
tests/playwright/tests/db/filters.spec.ts

@ -952,7 +952,7 @@ test.describe('Filter Tests: Link to another record, Lookup, Rollup', () => {
opType: filterList[i].op,
value: filterList[i].value,
result: { rowCount: filterList[i].rowCount },
dataType: 'LinkToAnotherRecord',
dataType: 'Links',
});
}
}

6
tests/playwright/tests/db/megaTable.spec.ts

@ -202,9 +202,9 @@ test.describe.serial('Test table', () => {
await api.dbTableRow.bulkCreate('noco', context.project.id, table_2.id, rows);
await api.dbTableColumn.create(table_2.id, {
uidt: UITypes.LinkToAnotherRecord,
title: 'LinkToAnotherRecord',
column_name: 'LinkToAnotherRecord',
uidt: UITypes.Links,
title: 'Links',
column_name: 'Links',
parentId: table_1.id,
childId: table_2.id,
type: 'hm',

12
tests/playwright/tests/db/metaLTAR.spec.ts

@ -104,7 +104,7 @@ test.describe.serial('Test table', () => {
// Create links
// TableA <hm> TableB <hm> TableC
await api.dbTableColumn.create(tables[0].id, {
uidt: UITypes.LinkToAnotherRecord,
uidt: UITypes.Links,
title: `TableA:hm:TableB`,
column_name: `TableA:hm:TableB`,
parentId: tables[0].id,
@ -112,7 +112,7 @@ test.describe.serial('Test table', () => {
type: 'hm',
});
await api.dbTableColumn.create(tables[1].id, {
uidt: UITypes.LinkToAnotherRecord,
uidt: UITypes.Links,
title: `TableB:hm:TableC`,
column_name: `TableB:hm:TableC`,
parentId: tables[1].id,
@ -122,7 +122,7 @@ test.describe.serial('Test table', () => {
// TableA <mm> TableD <mm> TableE
await api.dbTableColumn.create(tables[0].id, {
uidt: UITypes.LinkToAnotherRecord,
uidt: UITypes.Links,
title: `TableA:mm:TableD`,
column_name: `TableA:mm:TableD`,
parentId: tables[0].id,
@ -130,7 +130,7 @@ test.describe.serial('Test table', () => {
type: 'mm',
});
await api.dbTableColumn.create(tables[3].id, {
uidt: UITypes.LinkToAnotherRecord,
uidt: UITypes.Links,
title: `TableD:mm:TableE`,
column_name: `TableD:mm:TableE`,
parentId: tables[3].id,
@ -140,7 +140,7 @@ test.describe.serial('Test table', () => {
// TableA <hm> TableA : self relation
await api.dbTableColumn.create(tables[0].id, {
uidt: UITypes.LinkToAnotherRecord,
uidt: UITypes.Links,
title: `TableA:hm:TableA`,
column_name: `TableA:hm:TableA`,
parentId: tables[0].id,
@ -150,7 +150,7 @@ test.describe.serial('Test table', () => {
// TableA <mm> TableA : self relation
await api.dbTableColumn.create(tables[0].id, {
uidt: UITypes.LinkToAnotherRecord,
uidt: UITypes.Links,
title: `TableA:mm:TableA`,
column_name: `TableA:mm:TableA`,
parentId: tables[0].id,

2
tests/playwright/tests/db/undo-redo.spec.ts

@ -527,7 +527,7 @@ test.describe('Undo Redo - LTAR', () => {
await api.dbTableColumn.create(countryTable.id, {
column_name: 'CityList',
title: 'CityList',
uidt: UITypes.LinkToAnotherRecord,
uidt: UITypes.Links,
parentId: countryTable.id,
childId: cityTable.id,
type: 'hm',

2
tests/playwright/tests/db/viewForm.spec.ts

@ -310,7 +310,7 @@ test.describe('Form view with LTAR', () => {
await api.dbTableColumn.create(countryTable.id, {
column_name: 'CityList',
title: 'CityList',
uidt: UITypes.LinkToAnotherRecord,
uidt: UITypes.Links,
parentId: countryTable.id,
childId: cityTable.id,
type: 'hm',

Loading…
Cancel
Save