CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

[FEATURE REQUEST](playwright): make `I.seeInField` and `I.dontSeeInField` to interact with contenteditable

Open EgorBodnar opened this issue 2 years ago • 3 comments

What are you trying to achieve?

We have APIs: I.clearField andI.fillField which works with contenteditable.

But I.seeInField and I.dontSeeInField can't interact with it. See error log:

elementHandle.inputValue: Error: Node is not an input, textareas or <select> element

So need to extend functionality of I.seeInField and I.dontSeeInField to be able to interact with contenteditable.


Implementation plan:

Modify the proceedSeeInField in the Playwright helper and add a check for property of the field "contenteditable", if so do the assertion by this.see(), else - do by the existing way.

For reference for property verification see in implementation of the I.fillField()

EgorBodnar avatar Jun 04 '23 04:06 EgorBodnar

@eripley welcome to contribute :raised_hands:

use /form/contenteditable test-app form for tests

EgorBodnar avatar Jun 10 '23 04:06 EgorBodnar

hey!

working on it :)

eripley avatar Jun 11 '23 13:06 eripley

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Oct 03 '23 02:10 github-actions[bot]