test: add regression test

This commit is contained in:
Pengoose 2024-12-09 17:16:10 +09:00
parent dfa24462db
commit be27666a2f

View file

@ -45,6 +45,13 @@ test('should support failure', async ({ page }) => {
expect(stripAnsi(error.message)).toContain('"Text content"');
});
test('should normalize whitespace', async ({ page }) => {
await page.setContent('<input id=node></input>');
const locator = page.locator('#node');
await locator.fill('foo&nbsp;bar\nbaz');
await expect(locator).toHaveValue('foo bar baz');
});
test.describe('toHaveValues with multi-select', () => {
test('works with text', async ({ page }) => {
await page.setContent(`