Closed vgrigoruk closed 2 years ago
Hello, has anyone started to work on the codemod? This is something I am going to need to I am offering my help
@alk-mandrianarijaona no one has started on this, happy if you can lead this effort.
@christian-bromann I have started a draft PR to start collaborating on this
I tried this codemode and it got me a little bit on the way but many things needs manual fixups. In particular:
expect(await (await $('body')).getText()).toContain('Could not find any page matching the specified address.')
it('login page loads', async () => {
but I use page objects so most of my .click() and .setValue() etc is inside page object functions and those where not made async. Whenever it adds an await in a function, I think it would be good if that function was also made async.@mo would you mind sharing some of your initial code sample so I can do more testing on my side?
I expanded off of what @alk-mandrianarijaona started with the codemod if anyone wants to check it out.
@WillBrock that looks great, I am gonna test it with some of my files and let you know
Any updates on the status of this effort?
I just released this as v0.10.0
.
It would be nice to have a
codemod
that can convertwdio
sync code to async.