Closed dolfje closed 1 year ago
I think this is really useful, but I am not sure if pressing tab
will be the best approach (especially because tab
is commonly used for page navigation). What do you think about a contextual menu? Pressing right click on the page could show up some options related to assertions.
I will add a PoC under this branch, so we can review it and compare
I agree with contextual menu. But because "tab" is already used in the context of "marking input" from the user.
Description
In test you want to check if some text is included in the page. That wasn't possible yet with the current recoder. I made it possible by selecting the text and then press the tab (so the key code). Then it will add a code block that will check if the selected text is present.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist:
npm run lint
passes with no errors.npm run test
passes with no errors.