Codeceptjs: Problem with arrow functions without parentheses still exist

Created on 21 Jul 2017  路  4Comments  路  Source: codeceptjs/CodeceptJS

This was supposed to have been fixed in #127, but the problem still exists.

Feature('Login')

Before((I) => {
  I.amOnPage('/')
  I.waitForText('Promotions', 10)
})

Scenario('logging in', I => {
  I.fillField('username', 'annisukino87')
  I.fillField('password', 'Abc123')
  I.click('log-in')
  I.waitForText('Ruby Store', 10)
  I.amOnPage('/en/adventure')
})

Will lead to the error message Object of type 'username' is not defined in container. Adding a pair of parentheses around I fixes this issue.

I've verified that we're running a version of the code that has this fix present (0.6.3).

question

All 4 comments

We changed the library for parsing functions so I believe this is now fixed in master.
It should be fixed in next release

That's great, thanks.

Should I close this issue, or leave it open for a while, in case anyone else encounters it?

Please check the code after 1.0 release. If anything ok - close it

Close due inactivity

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DioNNiS picture DioNNiS  路  3Comments

javigomez picture javigomez  路  3Comments

himanshuqdabra picture himanshuqdabra  路  3Comments

yogainalift picture yogainalift  路  3Comments

DenisChulkov picture DenisChulkov  路  4Comments