nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

Fixes/resolve command node in assert commands

Open gravityvi opened this issue 3 years ago • 0 comments

Changes

  • Delay the resolution of assert node so that command node (child node of assert resolves first).
  • Added test to check if async/await custom commands using asserts works fine.
  • fix static assertions (assert.ok) to return a promise in case of async node.
  • reject assert node if error is assertion assertion error.
  • fix a test to drop status params from promise result.

Impacts

  • fixes #3301

gravityvi avatar Aug 05 '22 11:08 gravityvi