web icon indicating copy to clipboard operation
web copied to clipboard

[test-runner-commands] selectOption is not included in types and is not working

Open electrovir opened this issue 3 years ago • 5 comments

I see export function selectOption in node_modules/@web/test-runner-commands/browser/commands.mjs but it is not present in node_modules/@web/test-runner-commands/browser/commands.d.ts.

I'm on version 0.6.5 of @web/test-runner-commands (the current latest version).

electrovir avatar Oct 06 '22 20:10 electrovir

Even after ignoring the types, calling selectOption throws an error:

Unknown command select-option. Did you install a plugin to handle this command?

I am using playwright as a browser launcher. What else do I need?

electrovir avatar Oct 06 '22 20:10 electrovir

Looks like it's missing from https://github.com/modernweb-dev/web/blob/master/packages/test-runner-commands/src/index.ts

electrovir avatar Oct 06 '22 20:10 electrovir

This is still an issue. Will this ever be addressed?

kim-nguyenkhn avatar Mar 01 '23 23:03 kim-nguyenkhn

I happened to be in need of this exact feature and was happy to find it was recently added—only to be disappointed when I discovered it doesn't actually work. It sounds like #2047 might have fixed this problem but was closed by the author due to a lack of response by the maintainers. I would love for this to get fixed so I can make use of it.

zolk avatar Apr 19 '23 22:04 zolk

this might be fixed in https://github.com/modernweb-dev/web/pull/2479 (I haven't tried it yet)

electrovir avatar Aug 21 '24 12:08 electrovir