Skip to content

Commit

Permalink
test: add a case
Browse files Browse the repository at this point in the history
  • Loading branch information
righ committed Aug 29, 2024
1 parent 1c643df commit 3590f58
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions e2e/event.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { test, expect } from '@playwright/test';

test('show the diff', async ({ page }) => {
await page.goto('http://localhost:5233/iframe.html?id=table-operations--sheet-on-change&viewMode=story');
const b7 = page.locator("[data-address='B7']");
await b7.dblclick();

const editor = page.locator('.gs-editor textarea');
await editor.fill('777');
await editor.press('Enter');

const pre = page.locator('#diff');
expect(await pre.textContent()).toContain('{"B7":777}');
});

0 comments on commit 3590f58

Please sign in to comment.