|
|
@ -307,26 +307,26 @@ test.describe('Undo Redo', () => { |
|
|
|
|
|
|
|
|
|
|
|
const timeOut = 200; |
|
|
|
const timeOut = 200; |
|
|
|
|
|
|
|
|
|
|
|
await verifyRowHeight({ height: '1.5rem' }); |
|
|
|
await verifyRowHeight({ height: '1.8rem' }); |
|
|
|
|
|
|
|
|
|
|
|
// set row height & verify
|
|
|
|
// set row height & verify
|
|
|
|
await toolbar.clickRowHeight(); |
|
|
|
await toolbar.clickRowHeight(); |
|
|
|
await toolbar.rowHeight.click({ title: 'Tall' }); |
|
|
|
await toolbar.rowHeight.click({ title: 'Tall' }); |
|
|
|
await new Promise(resolve => setTimeout(resolve, timeOut)); |
|
|
|
await new Promise(resolve => setTimeout(resolve, timeOut)); |
|
|
|
await verifyRowHeight({ height: '6rem' }); |
|
|
|
await verifyRowHeight({ height: '7.2rem' }); |
|
|
|
|
|
|
|
|
|
|
|
await toolbar.clickRowHeight(); |
|
|
|
await toolbar.clickRowHeight(); |
|
|
|
await toolbar.rowHeight.click({ title: 'Medium' }); |
|
|
|
await toolbar.rowHeight.click({ title: 'Medium' }); |
|
|
|
await new Promise(resolve => setTimeout(resolve, timeOut)); |
|
|
|
await new Promise(resolve => setTimeout(resolve, timeOut)); |
|
|
|
await verifyRowHeight({ height: '3rem' }); |
|
|
|
await verifyRowHeight({ height: '3.6rem' }); |
|
|
|
|
|
|
|
|
|
|
|
await undo({ page }); |
|
|
|
await undo({ page }); |
|
|
|
await new Promise(resolve => setTimeout(resolve, timeOut)); |
|
|
|
await new Promise(resolve => setTimeout(resolve, timeOut)); |
|
|
|
await verifyRowHeight({ height: '6rem' }); |
|
|
|
await verifyRowHeight({ height: '7.2rem' }); |
|
|
|
|
|
|
|
|
|
|
|
await undo({ page }); |
|
|
|
await undo({ page }); |
|
|
|
await new Promise(resolve => setTimeout(resolve, timeOut)); |
|
|
|
await new Promise(resolve => setTimeout(resolve, timeOut)); |
|
|
|
await verifyRowHeight({ height: '1.5rem' }); |
|
|
|
await verifyRowHeight({ height: '1.8rem' }); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
test('Column width', async ({ page }) => { |
|
|
|
test('Column width', async ({ page }) => { |
|
|
|