Skip to content

feat: add a v10 transform for legacy command signatures - #140

Open
christian-bromann wants to merge 1 commit into
mainfrom
v10-legacy-command-signatures
Open

christian-bromann wants to merge 1 commit into
mainfrom
v10-legacy-command-signatures

Conversation

@christian-bromann

Copy link
Copy Markdown
Member

Summary

Adds a v10 jscodeshift transform for the mechanical command-signature changes in webdriverio/webdriverio#15655:

  • addCommand / overwriteCommand boolean scope becomes { attachToElement }
  • getHTML(true|false) becomes getHTML({ includeSelectorTag })
  • getCookies('name'), getCookies(['name']), and getCookie('name') become getCookies({ name })

A getCookies call with more than one name is left unchanged.

Companion runtime change: webdriverio/webdriverio#15712

Test plan

  • npm test (babel and tsx parsers, including the new v10 fixture)

Rewrite boolean addCommand and overwriteCommand scopes, getHTML(boolean), and string getCookies or getCookie filters into the v10 options objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant