Skip to content

Commit

Permalink
refactor: cell operate remove selection (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzxming authored Jan 29, 2025
1 parent 87d9c85 commit ac3c436
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 235 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/e2e/table-selection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test('test TableSelection horizontal', async ({ page }) => {
Number.parseFloat(await selectionLine.evaluate(el => getComputedStyle(el).height)),
).toBeCloseTo(cellBounding.height, -1);

await page.locator('#editor1 .ql-editor .ql-table').click({ button: 'right' });
await cell.click({ button: 'right' });
await page.locator('.table-up-menu.is-contextmenu .table-up-menu__item').filter({ hasText: 'Merge Cell' }).first().click();

await page.locator('#editor1 .ql-editor .ql-table td').nth(3).click();
Expand Down Expand Up @@ -64,7 +64,7 @@ test('test TableSelection vertical', async ({ page }) => {
await page.mouse.down();
await page.mouse.move(cellBounding.x, cellBounding.y + cellBounding.height * 3);
await page.mouse.up();
await page.locator('#editor1 .ql-editor .ql-table').click({ button: 'right' });
await cell.click({ button: 'right' });
await page.locator('.table-up-menu.is-contextmenu .table-up-menu__item').filter({ hasText: 'Merge Cell' }).first().click();

await page.locator('#editor1 .ql-editor .ql-table td').nth(0).click();
Expand Down
Loading

0 comments on commit ac3c436

Please sign in to comment.