Hey!
I have the following code:
fun adminCancelCustomerLock() {
val admin = createAdmin()
openCustomerWithUser(admin)
customerPage.cancelLock()
customerPage.lockConfigurationBtn()
customerPage.lockBanner()
}
When I put a caret on any of
customerPage
and hit Option+Enter -> Convert to run, then it transforms to:
fun adminCancelCustomerLock() {
val admin = createAdmin()
openCustomerWithUser(admin)
customerPage.run {
openCustomerWithUser(admin)
cancelLock()
lockConfigurationBtn()
lockBanner()
}
}
So, why it puts the
openCustomerWithUser(admin)
inside the
run
block if it wasn’t called on
customerPage
instance?
A bug, perhaps?