|
|
@ -29,7 +29,7 @@ test.describe('Virtual Columns', () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
test('creation and showing value in grid view', async () => { |
|
|
|
test('creation, showing, updating value and change qr col title and reference column', async () => { |
|
|
|
// Add qr code column referencing the City column
|
|
|
|
// Add qr code column referencing the City column
|
|
|
|
// and compare the base64 encoded codes/src attributes for the first 3 rows.
|
|
|
|
// and compare the base64 encoded codes/src attributes for the first 3 rows.
|
|
|
|
// Column data from City table (Sakila DB)
|
|
|
|
// Column data from City table (Sakila DB)
|
|
|
@ -68,6 +68,7 @@ test.describe('Virtual Columns', () => { |
|
|
|
qrCodeValueColumnTitle: 'City', |
|
|
|
qrCodeValueColumnTitle: 'City', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await qrCodeColumnVerify('QrCode1', expectedQrCodeCellValues); |
|
|
|
await qrCodeColumnVerify('QrCode1', expectedQrCodeCellValues); |
|
|
|
|
|
|
|
|
|
|
|
// Clicking on qr code in first row and expect it shows a
|
|
|
|
// Clicking on qr code in first row and expect it shows a
|
|
|
@ -77,6 +78,18 @@ test.describe('Virtual Columns', () => { |
|
|
|
await qrGridOverlay.verifyQrValueLabel(expectedQrCodeCellValues[0].referencedValue); |
|
|
|
await qrGridOverlay.verifyQrValueLabel(expectedQrCodeCellValues[0].referencedValue); |
|
|
|
await qrGridOverlay.clickCloseButton(); |
|
|
|
await qrGridOverlay.clickCloseButton(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Change the value in the referenced column, first row
|
|
|
|
|
|
|
|
// and expect respective QR changes accordingly
|
|
|
|
|
|
|
|
await dashboard.grid.cell.fillText({ columnHeader: 'City', index: 0, text: 'Hamburg' }) |
|
|
|
|
|
|
|
const expectedQrCodeCellValuesAfterCityNameChange = [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
referencedValue: 'Hambur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ereXd/dxVr2RAtYLNu/qzq224yicrINqIianfzrM9e2OV9e0ws/oMuAepcoaT2/elSAzNm7C3PFqrCv8AJaaDcHOTZg7Xggx/SSjzvntyj/47zmpWBOKumC449WQV/ihYqnZEOzchLnjhRCpWKpISgleUX5H72IZ34A1m/Xdm1zHDwioH03ULCGeJfOG5rxPZaCs1kiNe6RWZvPFin+seyBVgumyAaxYWcCKNfpmAVixaIAVawRYfxXIHLeABViHCvyKHmsi9wx5MwVaPtJ5M41YzoQCgDUhGkNiBQAr1giLCQUAa0I0hsQKAFasERYTCgDWhGgMiRUArFgjLCYUAKwJ0RgSKwBYsUZYTCgAWBOiMSRWALBijbCYUACwJkRjSKwAYMUaYTGhAGBNiMaQWAHAijXCYkIBwJoQjSGxAoAVa4TFhAKANSEaQ2IFACvWCIsJBf4ABVN/xpCpplAAAAAASUVORK5CYII=' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
...expectedQrCodeCellValues.slice(1) |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
await qrCodeColumnVerify('QrCode1', expectedQrCodeCellValuesAfterCityNameChange); |
|
|
|
|
|
|
|
|
|
|
|
await dashboard.closeTab({ title: 'City' }); |
|
|
|
await dashboard.closeTab({ title: 'City' }); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|