Browse Source

test: change row heights according to latest change

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5849/head
mertmit 1 year ago
parent
commit
d80c977b9f
  1. 8
      tests/playwright/tests/db/toolbarOperations.spec.ts
  2. 10
      tests/playwright/tests/db/undo-redo.spec.ts

8
tests/playwright/tests/db/toolbarOperations.spec.ts

@ -77,10 +77,10 @@ test.describe('Toolbar operations (GRID)', () => {
test('row height', async () => {
// define an array of row heights
const rowHeight = [
{ title: 'Short', height: '1.5rem' },
{ title: 'Medium', height: '3rem' },
{ title: 'Tall', height: '6rem' },
{ title: 'Extra', height: '9rem' },
{ title: 'Short', height: '1.8rem' },
{ title: 'Medium', height: '3.6rem' },
{ title: 'Tall', height: '7.2rem' },
{ title: 'Extra', height: '10.8rem' },
];
// close 'Team & Auth' tab

10
tests/playwright/tests/db/undo-redo.spec.ts

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

Loading…
Cancel
Save