1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-29 00:29:59 +02:00
Files
vanilla-todo/test/e2e/addCustomTodoList.test.js
2025-01-01 15:43:57 +01:00

13 lines
393 B
JavaScript

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