|
|
|
@ -79,20 +79,27 @@ test.describe('Grid operations', () => {
|
|
|
|
|
}); |
|
|
|
|
expect(await dashboard.grid.cell.getClipboardText()).toBe('123'); |
|
|
|
|
|
|
|
|
|
await dashboard.grid.cell.copyToClipboard({ |
|
|
|
|
index: 0, |
|
|
|
|
columnHeader: 'Checkbox', |
|
|
|
|
}); |
|
|
|
|
await dashboard.grid.cell.copyToClipboard( |
|
|
|
|
{ |
|
|
|
|
index: 0, |
|
|
|
|
columnHeader: 'Checkbox', |
|
|
|
|
}, |
|
|
|
|
{ position: { x: 1, y: 1 } } |
|
|
|
|
); |
|
|
|
|
await new Promise(resolve => setTimeout(resolve, 5000)); |
|
|
|
|
expect(await dashboard.grid.cell.getClipboardText()).toBe('true'); |
|
|
|
|
|
|
|
|
|
await dashboard.grid.cell.click({ |
|
|
|
|
index: 0, |
|
|
|
|
columnHeader: 'Checkbox', |
|
|
|
|
}); |
|
|
|
|
await dashboard.grid.cell.copyToClipboard({ |
|
|
|
|
index: 0, |
|
|
|
|
columnHeader: 'Checkbox', |
|
|
|
|
}); |
|
|
|
|
await dashboard.grid.cell.copyToClipboard( |
|
|
|
|
{ |
|
|
|
|
index: 0, |
|
|
|
|
columnHeader: 'Checkbox', |
|
|
|
|
}, |
|
|
|
|
{ position: { x: 1, y: 1 } } |
|
|
|
|
); |
|
|
|
|
expect(await dashboard.grid.cell.getClipboardText()).toBe('false'); |
|
|
|
|
|
|
|
|
|
await dashboard.grid.cell.copyToClipboard({ |
|
|
|
@ -105,6 +112,6 @@ test.describe('Grid operations', () => {
|
|
|
|
|
index: 0, |
|
|
|
|
columnHeader: 'Attachment', |
|
|
|
|
}); |
|
|
|
|
expect(await dashboard.grid.cell.getClipboardText()).toBe('1.json'); |
|
|
|
|
// expect(await dashboard.grid.cell.getClipboardText()).toBe('1.json');
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|