Browse Source

qrcode: playwright tests (WIP; atm broken)

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

14
tests/playwright/tests/columnQrCode.spec.ts

@ -63,9 +63,17 @@ test.describe('Virtual Columns', () => {
// We expect that the QR code column is deleted // We expect that the QR code column is deleted
// when the column that is referenced by the QR code column gets deleted. // when the column that is referenced by the QR code column gets deleted.
await grid.column.verify({ title: 'QrCode1', isVisible: true }); await grid.column.create({ title: 'column_name_a' });
await grid.column.delete({ title: 'City' }); await grid.column.verify({ title: 'column_name_a' });
await grid.column.verify({ title: 'QrCode1', isVisible: false }); // await grid.addNewRow({ index: 0, columnHeader: 'column_name_a', value: `Row 0` });
await dashboard.grid.column.create({
title: 'QrCode2',
type: 'QrCode',
qrCodeValueColumnTitle: 'column_name_a',
});
await grid.column.verify({ title: 'QrCode2', isVisible: true });
await grid.column.delete({ title: 'column_name_a' });
await grid.column.verify({ title: 'QrCode2', isVisible: false });
await dashboard.closeTab({ title: 'City' }); await dashboard.closeTab({ title: 'City' });
}); });

Loading…
Cancel
Save