1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-09-01 18:02:41 +02:00

add tests for item drag and drop

This commit is contained in:
Morris Brodersen
2025-01-01 15:43:57 +01:00
parent f4f2dea25a
commit 40ac583e1f
4 changed files with 64 additions and 5 deletions

View File

@@ -4,8 +4,8 @@ import '../coverage.js';
test('Add custom to-do list', async ({ page }) => {
await page.goto('http://localhost:8080');
const add = page.locator('.todo-frame.-custom .add');
await add.click();
const addCustomTodoList = page.locator('.todo-frame.-custom .add');
await addCustomTodoList.click();
const title = page.locator('.todo-custom-list > .header > .title');
await expect(title).toHaveText('...');