15 lines
484 B
TypeScript

import { helpers } from '../../src/helpers';
import { test } from '../../src/test-runner';
import {
selectCell,
selectFromContextMenu,
} from '../../src/page-helpers';
test('Test comments', async({ tablePage }) => {
(await selectCell(1, 1)).click({ button: 'right' });
await selectFromContextMenu('"Add comment"');
await tablePage.locator('.htComments').getByRole('textbox').fill('This is a comment');
await tablePage.screenshot({ path: helpers.screenshotPath() });
});