mirror of
https://github.com/morris/vanilla-todo.git
synced 2025-09-01 01:51:53 +02:00
set type module, simplify tests, update deps
This commit is contained in:
12
test/e2e/addCustomTodoList.test.js
Normal file
12
test/e2e/addCustomTodoList.test.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { expect, test } from '@playwright/test';
|
||||
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 title = page.locator('.todo-custom-list > .header > .title');
|
||||
await expect(title).toHaveText('...');
|
||||
});
|
Reference in New Issue
Block a user