Browse Source

qrcode: playwright tests (WIP)

pull/4142/head
Daniel Spaude 2 years ago
parent
commit
d6e9d7defe
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 28
      tests/playwright/tests/columnQrCode.spec.ts

28
tests/playwright/tests/columnQrCode.spec.ts

@ -47,19 +47,6 @@ test.describe('Virtual Columns', () => {
await dashboard.closeTab({ title: 'Team & Auth' });
await dashboard.treeView.openTable({ title: 'City' });
await dashboard.grid.column.create({
title: 'QrCode1',
type: 'QrCode',
qrCodeValueColumnTitle: 'City',
});
await dashboard.grid.cell.verifyQrCodeCell({
index: 0,
columnHeader: 'QrCode1',
expectedSrcValue: expectedQrCodeCellValues[0],
});
await qrCodeVerify('QrCode1', expectedQrCodeCellValues);
// We expect that the QR code column is deleted
// when the column that is referenced by the QR code column gets deleted.
@ -75,6 +62,21 @@ test.describe('Virtual Columns', () => {
await grid.column.delete({ title: 'column_name_a' });
await grid.column.verify({ title: 'QrCode2', isVisible: false });
await dashboard.grid.column.create({
title: 'QrCode1',
type: 'QrCode',
qrCodeValueColumnTitle: 'City',
});
await dashboard.grid.cell.verifyQrCodeCell({
index: 0,
columnHeader: 'QrCode1',
expectedSrcValue: expectedQrCodeCellValues[0],
});
await qrCodeVerify('QrCode1', expectedQrCodeCellValues);
await dashboard.closeTab({ title: 'City' });
});
});

Loading…
Cancel
Save